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

Commit1e012a4

Browse files
author
Aaron Lehmann
committed
Handle "--" as delimeter between workspace name and agent
1 parentf9ac761 commit1e012a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎cli/ssh.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ func (r *RootCmd) ssh() *serpent.Command {
183183

184184
namedWorkspace:=strings.TrimPrefix(inv.Args[0],hostPrefix)
185185
// Support "--" as a delimiter between owner and workspace name
186-
namedWorkspace=strings.ReplaceAll(namedWorkspace,"--","/")
186+
namedWorkspace=strings.Replace(namedWorkspace,"--","/",1)
187+
// Support "--" as a delimiter between workspace name and agent
188+
namedWorkspace=strings.Replace(namedWorkspace,"--",".",1)
187189

188190
workspace,workspaceAgent,err:=getWorkspaceAndAgent(ctx,inv,client,!disableAutostart,namedWorkspace)
189191
iferr!=nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp