mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: display force-tty flag (#17067)
Fixes: https://github.com/coder/coder/issues/17033
This commit is contained in:
@ -433,7 +433,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err
|
|||||||
{
|
{
|
||||||
Flag: varForceTty,
|
Flag: varForceTty,
|
||||||
Env: "CODER_FORCE_TTY",
|
Env: "CODER_FORCE_TTY",
|
||||||
Hidden: true,
|
Hidden: false,
|
||||||
Description: "Force the use of a TTY.",
|
Description: "Force the use of a TTY.",
|
||||||
Value: serpent.BoolOf(&r.forceTTY),
|
Value: serpent.BoolOf(&r.forceTTY),
|
||||||
Group: globalGroup,
|
Group: globalGroup,
|
||||||
|
3
cli/testdata/coder_--help.golden
vendored
3
cli/testdata/coder_--help.golden
vendored
@ -79,6 +79,9 @@ variables or flags.
|
|||||||
Coder. Network telemetry is used to measure network quality and detect
|
Coder. Network telemetry is used to measure network quality and detect
|
||||||
regressions.
|
regressions.
|
||||||
|
|
||||||
|
--force-tty bool, $CODER_FORCE_TTY
|
||||||
|
Force the use of a TTY.
|
||||||
|
|
||||||
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
|
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
|
||||||
Path to the global `coder` config directory.
|
Path to the global `coder` config directory.
|
||||||
|
|
||||||
|
9
docs/reference/cli/index.md
generated
9
docs/reference/cli/index.md
generated
@ -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.
|
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
|
### -v, --verbose
|
||||||
|
|
||||||
| | |
|
| | |
|
||||||
|
3
enterprise/cli/testdata/coder_--help.golden
vendored
3
enterprise/cli/testdata/coder_--help.golden
vendored
@ -37,6 +37,9 @@ variables or flags.
|
|||||||
Coder. Network telemetry is used to measure network quality and detect
|
Coder. Network telemetry is used to measure network quality and detect
|
||||||
regressions.
|
regressions.
|
||||||
|
|
||||||
|
--force-tty bool, $CODER_FORCE_TTY
|
||||||
|
Force the use of a TTY.
|
||||||
|
|
||||||
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
|
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
|
||||||
Path to the global `coder` config directory.
|
Path to the global `coder` config directory.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user