Skip to content

Commit e5cc17a

Browse files
authored
chore(cli): hide --organization (coder#12626)
It's potentially confusing to users since we aren't fleshing out organizations right now.
1 parent cf50461 commit e5cc17a

File tree

4 files changed

+1
-18
lines changed

4 files changed

+1
-18
lines changed

cli/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err
447447
Env: "CODER_ORGANIZATION",
448448
Description: "Select which organization (uuid or name) to use This overrides what is present in the config file.",
449449
Value: serpent.StringOf(&r.organizationSelect),
450+
Hidden: true,
450451
Group: globalGroup,
451452
},
452453
{

cli/testdata/coder_--help.golden

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ variables or flags.
8282
--no-version-warning bool, $CODER_NO_VERSION_WARNING
8383
Suppress warning when client and server versions do not match.
8484

85-
-z, --organization string, $CODER_ORGANIZATION
86-
Select which organization (uuid or name) to use This overrides what is
87-
present in the config file.
88-
8985
--token string, $CODER_SESSION_TOKEN
9086
Specify an authentication token. For security reasons setting
9187
CODER_SESSION_TOKEN is preferred.

docs/cli.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,3 @@ Disable direct (P2P) connections to workspaces.
157157
| Default | <code>~/.config/coderv2</code> |
158158

159159
Path to the global `coder` config directory.
160-
161-
### -z, --organization
162-
163-
| | |
164-
| ----------- | -------------------------------- |
165-
| Type | <code>string</code> |
166-
| Environment | <code>$CODER_ORGANIZATION</code> |
167-
168-
Select which organization (uuid or name) to use This overrides what is present
169-
in the config file.

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ variables or flags.
4848
--no-version-warning bool, $CODER_NO_VERSION_WARNING
4949
Suppress warning when client and server versions do not match.
5050

51-
-z, --organization string, $CODER_ORGANIZATION
52-
Select which organization (uuid or name) to use This overrides what is
53-
present in the config file.
54-
5551
--token string, $CODER_SESSION_TOKEN
5652
Specify an authentication token. For security reasons setting
5753
CODER_SESSION_TOKEN is preferred.

0 commit comments

Comments
 (0)