feat: add --network-info-dir and --network-info-interval flags to coder ssh (#16078)

This is the first in a series of PRs to enable `coder ssh` to replace
`coder vscodessh`.

This change adds `--network-info-dir` and `--network-info-interval`
flags to the `ssh` subcommand. These were formerly only available with
the `vscodessh` subcommand.

Subsequent PRs will add a `--ssh-host-prefix` flag to the ssh
subcommand, and adjust the log file naming to contain the parent PID.
This commit is contained in:
Aaron Lehmann
2025-01-13 18:29:31 -06:00
committed by GitHub
parent c2b55346ac
commit 838ee3b244
5 changed files with 309 additions and 163 deletions
+6
View File
@@ -30,6 +30,12 @@ OPTIONS:
-l, --log-dir string, $CODER_SSH_LOG_DIR
Specify the directory containing SSH diagnostic log files.
--network-info-dir string
Specifies a directory to write network information periodically.
--network-info-interval duration (default: 5s)
Specifies the interval to update network information.
--no-wait bool, $CODER_SSH_NO_WAIT
Enter workspace immediately after the agent has connected. This is the
default if the template has configured the agent startup script