Skip to content

Commit 081679f

Browse files
authored
fix: display force-tty flag (#17067)
Fixes: #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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy