-
Notifications
You must be signed in to change notification settings - Fork 874
feat: add coder connect exists hidden subcommand #17418
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
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ecef684
to
169ab02
Compare
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.
LGTM! 👍🏻
@@ -175,6 +181,10 @@ func (r *RootCmd) RunWithSubcommands(subcommands []*serpent.Command) { | |||
//nolint:revive,gocritic | |||
os.Exit(code) | |||
} | |||
if errors.Is(err, ErrSilent) { |
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.
&exitError{code: 1}
could potentially be used instead, but I see other uses of it have disappeared from the code base.
169ab02
to
a89e1c3
Compare
a89e1c3
to
dc5fab3
Compare
Merge activity
|
Adds a new hidden subcommand
coder connect exists <hostname>
that checks if the name exists via Coder Connect. This will be used in SSH config to match only if Coder Connect is unavailable for the hostname in question, so that the SSH client will directly dial the workspace over an existing Coder Connect tunnel.Also refactors the way we inject a test DNS resolver into the lookup functions so that we can test from outside the
workspacesdk
package.