New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor CLI to use the original deployment status #1247
Conversation
Code coverage for golang is |
@@ -59,7 +59,7 @@ func newSyncCommand(root *command) *cobra.Command { | |||
} | |||
|
|||
func (c *sync) run(ctx context.Context, t cli.Telemetry) error { | |||
statuses, err := makeStatuses(c.status) | |||
statuses, err := model.DeploymentStatusesFromStrings(c.status) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: not in the scope of this PR but should we rename this s.status
to s.statuses
since it's type []string
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Let me fix them in this too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed them!
@@ -60,7 +60,7 @@ func newWaitStatusCommand(root *command) *cobra.Command { | |||
} | |||
|
|||
func (c *waitStatus) run(ctx context.Context, t cli.Telemetry) error { | |||
statuses, err := makeStatuses(c.status) | |||
statuses, err := model.DeploymentStatusesFromStrings(c.status) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as the above comment 👀
Thanks 👍 |
Code coverage for golang is |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: