mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli/ssh): implement wait options and deprecate no-wait (#7894)
Fixes #7768 Refs #7893
This commit is contained in:
Vendored
+9
-6
@@ -25,15 +25,18 @@ Start a shell into a workspace
|
||||
Enable diagnostic logging to file.
|
||||
|
||||
--no-wait bool, $CODER_SSH_NO_WAIT
|
||||
Specifies whether to wait for a workspace to become ready before
|
||||
logging in (only applicable when the startup script behavior is
|
||||
blocking). Note that the workspace agent may still be in the process
|
||||
of executing the startup script and the workspace may be in an
|
||||
incomplete state.
|
||||
|
||||
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.
|
||||
DEPRECATED
|
||||
--stdio bool, $CODER_SSH_STDIO
|
||||
Specifies whether to emit SSH output over stdin/stdout.
|
||||
|
||||
--wait yes|no|auto, $CODER_SSH_WAIT (default: auto)
|
||||
Specifies whether or not to wait for the startup script to finish
|
||||
executing. Auto means that the agent startup script behavior
|
||||
configured in the workspace template is used.
|
||||
|
||||
--workspace-poll-interval duration, $CODER_WORKSPACE_POLL_INTERVAL (default: 1m)
|
||||
Specifies how often to poll for workspace automated shutdown.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user