Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit e05a6f3

Browse files
committed
fixup! feat: replace coder sh implementation to shell out to ssh
1 parent b2565f8 commit e05a6f3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/coder_ssh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Enter a shell of execute a command over SSH into a Coder environment
44

55
```
6-
coder ssh [environment_name] [flags]
6+
coder ssh [environment_name] [<command [args...]>]
77
```
88

99
### Examples

internal/cmd/ssh.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ var (
2222

2323
func sshCmd() *cobra.Command {
2424
cmd := cobra.Command{
25-
Use: "ssh [environment_name]",
25+
Use: "ssh [environment_name] [<command [args...]>]",
2626
Short: "Enter a shell of execute a command over SSH into a Coder environment",
2727
Args: shValidArgs,
2828
Example: `coder ssh my-dev
2929
coder ssh my-dev pwd`,
30-
Aliases: []string{"sh"},
31-
RunE: shell,
30+
Aliases: []string{"sh"},
31+
DisableFlagParsing: true,
32+
DisableFlagsInUseLine: true,
33+
RunE: shell,
3234
}
3335
return &cmd
3436
}

0 commit comments

Comments
 (0)