-
Notifications
You must be signed in to change notification settings - Fork 889
feat(cli/ssh): implement wait options and deprecate no-wait #7894
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
Conversation
ffbdf29
to
2afc35c
Compare
2afc35c
to
08da521
Compare
@@ -92,6 +92,7 @@ func (r *RootCmd) portForward() *clibase.Cmd { | |||
Fetch: func(ctx context.Context) (codersdk.WorkspaceAgent, error) { | |||
return client.WorkspaceAgent(ctx, workspaceAgent.ID) | |||
}, | |||
Wait: false, |
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.
Review: Before change from NoWait -> Wait
, these were bugs, added the explicit false here to signal intent.
08da521
to
2f223fe
Compare
cli/ssh.go
Outdated
wait bool | ||
noWait bool |
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 with #7893 (comment) - we could potentially (breaking-ly) refactor this to --wait=(always|never|auto)
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.
I think this is a very clean solution.
should we use an actual enum type for these? Not a big deal though
Value: clibase.BoolOf(&noWait), | ||
UseInstead: []clibase.Option{waitOption}, |
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.
It took me a hot second to see this as I was looking for Deprecated
🙃
Fixes #7768
Refs #7893