cli
cli copied to clipboard
feat: add deploy command to push all changes to linked project
What kind of change does this PR introduce?
Feature
What is the current behavior?
Have to seperately deploy changes to migrations, config, and functions.
What is the new behavior?
A single command that will deploy all changes to a remote proejct.
Additional context
- Adds
--remoteflag tostatusto get the health of the remote project. - Adds
--dry-runsupport to all deploy commands (added to functions and config)
Pull Request Test Coverage Report for Build 19699968033
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
- For more information on this, see Tracking coverage changes with pull request builds.
- To avoid this issue with future PRs, see these Recommended CI Configurations.
- For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
Details
- 45 of 181 (24.86%) changed or added relevant lines in 10 files are covered.
- 15 unchanged lines in 2 files lost coverage.
- Overall coverage decreased (-0.4%) to 54.995%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| cmd/config.go | 0 | 2 | 0.0% |
| internal/config/push/push.go | 1 | 5 | 20.0% |
| cmd/status.go | 0 | 5 | 0.0% |
| cmd/functions.go | 0 | 8 | 0.0% |
| internal/status/status.go | 34 | 44 | 77.27% |
| internal/bootstrap/bootstrap.go | 0 | 15 | 0.0% |
| cmd/deploy.go | 0 | 17 | 0.0% |
| internal/deploy/deploy.go | 0 | 75 | 0.0% |
| <!-- | Total: | 45 | 181 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| internal/gen/keys/keys.go | 5 | 12.9% |
| internal/utils/flags/db_url.go | 10 | 42.47% |
| <!-- | Total: | 15 |
| Totals | |
|---|---|
| Change from base Build 19695074455: | -0.4% |
| Covered Lines: | 6705 |
| Relevant Lines: | 12192 |