Skip to content

Commit 1447997

Browse files
committed
fix: display force-tty option
1 parent 6bf22f8 commit 1447997

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-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

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)