Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb0f964

Browse files
committed
make gen
1 parent b7806fd commit cb0f964

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

cli/ssh.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (r *RootCmd) ssh() *clibase.Cmd {
5353
waitEnum string
5454
noWait bool
5555
logDirPath string
56+
remoteForward string
5657
)
5758
client := new(codersdk.Client)
5859
cmd := &clibase.Cmd{
@@ -424,6 +425,13 @@ func (r *RootCmd) ssh() *clibase.Cmd {
424425
FlagShorthand: "l",
425426
Value: clibase.StringOf(&logDirPath),
426427
},
428+
{
429+
Flag: "remote-forward",
430+
Description: "Enable remote port forwarding.",
431+
Env: "CODER_SSH_REMOTE_FORWARD",
432+
FlagShorthand: "R",
433+
Value: clibase.StringOf(&remoteForward),
434+
},
427435
}
428436
return cmd
429437
}

cli/testdata/coder_ssh_--help.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Start a shell into a workspace
2727
behavior as non-blocking.
2828
DEPRECATED: Use --wait instead.
2929

30+
-R, --remote-forward string, $CODER_SSH_REMOTE_FORWARD
31+
Enable remote port forwarding.
32+
3033
--stdio bool, $CODER_SSH_STDIO
3134
Specifies whether to emit SSH output over stdin/stdout.
3235

docs/cli/ssh.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ Specify the directory containing SSH diagnostic log files.
5757

5858
Enter workspace immediately after the agent has connected. This is the default if the template has configured the agent startup script behavior as non-blocking.
5959

60+
### -R, --remote-forward
61+
62+
| | |
63+
| ----------- | -------------------------------------- |
64+
| Type | <code>string</code> |
65+
| Environment | <code>$CODER_SSH_REMOTE_FORWARD</code> |
66+
67+
Enable remote port forwarding.
68+
6069
### --stdio
6170

6271
| | |

0 commit comments

Comments
 (0)