fix: display force-tty flag (#17067)

Fixes: https://github.com/coder/coder/issues/17033
This commit is contained in:
Marcin Tojek
2025-03-25 10:25:35 +01:00
committed by GitHub
parent 8da568b132
commit 081679f431
4 changed files with 16 additions and 1 deletions

View File

@ -433,7 +433,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err
{
Flag: varForceTty,
Env: "CODER_FORCE_TTY",
Hidden: true,
Hidden: false,
Description: "Force the use of a TTY.",
Value: serpent.BoolOf(&r.forceTTY),
Group: globalGroup,

View File

@ -79,6 +79,9 @@ variables or flags.
Coder. Network telemetry is used to measure network quality and detect
regressions.
--force-tty bool, $CODER_FORCE_TTY
Force the use of a TTY.
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
Path to the global `coder` config directory.

View File

@ -131,6 +131,15 @@ Additional HTTP headers added to all requests. Provide as key=value. Can be spec
An external command that outputs additional HTTP headers added to all requests. The command must output each header as `key=value` on its own line.
### --force-tty
| | |
|-------------|-------------------------------|
| Type | <code>bool</code> |
| Environment | <code>$CODER_FORCE_TTY</code> |
Force the use of a TTY.
### -v, --verbose
| | |

View File

@ -37,6 +37,9 @@ variables or flags.
Coder. Network telemetry is used to measure network quality and detect
regressions.
--force-tty bool, $CODER_FORCE_TTY
Force the use of a TTY.
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
Path to the global `coder` config directory.