Skip to content

Commit 081679f

Browse files
authored
fix: display force-tty flag (coder#17067)
Fixes: coder#17033
1 parent 8da568b commit 081679f

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

cli/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err
433433
{
434434
Flag: varForceTty,
435435
Env: "CODER_FORCE_TTY",
436-
Hidden: true,
436+
Hidden: false,
437437
Description: "Force the use of a TTY.",
438438
Value: serpent.BoolOf(&r.forceTTY),
439439
Group: globalGroup,

cli/testdata/coder_--help.golden

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ variables or flags.
7979
Coder. Network telemetry is used to measure network quality and detect
8080
regressions.
8181

82+
--force-tty bool, $CODER_FORCE_TTY
83+
Force the use of a TTY.
84+
8285
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
8386
Path to the global `coder` config directory.
8487

docs/reference/cli/index.md

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/cli/testdata/coder_--help.golden

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ variables or flags.
3737
Coder. Network telemetry is used to measure network quality and detect
3838
regressions.
3939

40+
--force-tty bool, $CODER_FORCE_TTY
41+
Force the use of a TTY.
42+
4043
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
4144
Path to the global `coder` config directory.
4245

0 commit comments

Comments
 (0)