Skip to content

Commit ca640b5

Browse files
committed
chore: add example to ssh help documentation
1 parent c25d27f commit ca640b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cli/ssh.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ func (r *RootCmd) ssh() *serpent.Command {
9292
Annotations: workspaceCommand,
9393
Use: "ssh <workspace> [command]",
9494
Short: "Start a shell into a workspace or run a command",
95-
Long: "This command does not have full parity with the standard SSH command. For users who need the full functionality of SSH, create an ssh configuration with `coder config-ssh`.",
95+
Long: "This command does not have full parity with the standard SSH command. For users who need the full functionality of SSH, create an ssh configuration with `coder config-ssh`.\n\n" +
96+
FormatExamples(
97+
Example{
98+
Description: "Use `--` to separate and pass flags directly to the command executed via SSH.",
99+
Command: "coder ssh <workspace> -- ls -la",
100+
},
101+
),
96102
Middleware: serpent.Chain(
97103
// Require at least one arg for the workspace name
98104
func(next serpent.HandlerFunc) serpent.HandlerFunc {

0 commit comments

Comments
 (0)