Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
spikecurtis merged 1 commit intomainfromspike/connect-exists-cmd
Apr 17, 2025

Conversation

spikecurtis
Copy link
Contributor

@spikecurtisspikecurtis commentedApr 16, 2025
edited
Loading

Adds a new hidden subcommandcoder 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 theworkspacesdk package.

@spikecurtisGraphite App
Copy link
ContributorAuthor

spikecurtis commentedApr 16, 2025
edited
Loading

Copy link
Member

@mafredrimafredri left a 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) {
Copy link
Member

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.

@spikecurtisspikecurtisforce-pushed thespike/connect-exists-cmd branch from169ab02 toa89e1c3CompareApril 17, 2025 06:57
@spikecurtisspikecurtisforce-pushed thespike/connect-exists-cmd branch froma89e1c3 todc5fab3CompareApril 17, 2025 07:12
@spikecurtisspikecurtis merged commit3b54254 intomainApr 17, 2025
30 checks passed
@spikecurtisGraphite App
Copy link
ContributorAuthor

Merge activity

  • Apr 17, 3:23 AM EDT: A user merged this pull request withGraphite.

@spikecurtisspikecurtis deleted the spike/connect-exists-cmd branchApril 17, 2025 07:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 17, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@ethanndicksonethanndicksonethanndickson approved these changes

Assignees

@spikecurtisspikecurtis

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@spikecurtis@mafredri@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp