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

Commit3a4bb37

Browse files
committed
chore: change config-ssh Call to Action to use suffix
1 parent77364ba commit3a4bb37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎cli/configssh.go‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,11 @@ func (r *RootCmd) configSSH() *serpent.Command {
457457

458458
iflen(res.Workspaces)>0 {
459459
_,_=fmt.Fprintln(out,"You should now be able to ssh into your workspace.")
460-
_,_=fmt.Fprintf(out,"For example, try running:\n\n\t$ ssh %s%s\n",coderdConfig.HostnamePrefix,res.Workspaces[0].Name)
460+
ifconfigOptions.hostnameSuffix!="" {
461+
_,_=fmt.Fprintf(out,"For example, try running:\n\n\t$ ssh %s.%s\n",res.Workspaces[0].Name,configOptions.hostnameSuffix)
462+
}elseifconfigOptions.userHostPrefix!="" {
463+
_,_=fmt.Fprintf(out,"For example, try running:\n\n\t$ ssh %s%s\n",coderdConfig.HostnamePrefix,res.Workspaces[0].Name)
464+
}
461465
}else {
462466
_,_=fmt.Fprint(out,"You don't have any workspaces yet, try creating one with:\n\n\t$ coder create <workspace>\n")
463467
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp