From e5cc17af92ac11de2a3c9feb52f7592c47de8c17 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Mon, 18 Mar 2024 09:09:26 -0500 Subject: [PATCH] chore(cli): hide --organization (#12626) It's potentially confusing to users since we aren't fleshing out organizations right now. --- cli/root.go | 1 + cli/testdata/coder_--help.golden | 4 ---- docs/cli.md | 10 ---------- enterprise/cli/testdata/coder_--help.golden | 4 ---- 4 files changed, 1 insertion(+), 18 deletions(-) diff --git a/cli/root.go b/cli/root.go index 27330c856f..a5c77417bf 100644 --- a/cli/root.go +++ b/cli/root.go @@ -447,6 +447,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err Env: "CODER_ORGANIZATION", Description: "Select which organization (uuid or name) to use This overrides what is present in the config file.", Value: serpent.StringOf(&r.organizationSelect), + Hidden: true, Group: globalGroup, }, { diff --git a/cli/testdata/coder_--help.golden b/cli/testdata/coder_--help.golden index fc0785ee92..501a336915 100644 --- a/cli/testdata/coder_--help.golden +++ b/cli/testdata/coder_--help.golden @@ -82,10 +82,6 @@ variables or flags. --no-version-warning bool, $CODER_NO_VERSION_WARNING Suppress warning when client and server versions do not match. - -z, --organization string, $CODER_ORGANIZATION - Select which organization (uuid or name) to use This overrides what is - present in the config file. - --token string, $CODER_SESSION_TOKEN Specify an authentication token. For security reasons setting CODER_SESSION_TOKEN is preferred. diff --git a/docs/cli.md b/docs/cli.md index 96d0fc6358..93236d5c5e 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -157,13 +157,3 @@ Disable direct (P2P) connections to workspaces. | Default | ~/.config/coderv2 | Path to the global `coder` config directory. - -### -z, --organization - -| | | -| ----------- | -------------------------------- | -| Type | string | -| Environment | $CODER_ORGANIZATION | - -Select which organization (uuid or name) to use This overrides what is present -in the config file. diff --git a/enterprise/cli/testdata/coder_--help.golden b/enterprise/cli/testdata/coder_--help.golden index c861239297..7c2ff5c835 100644 --- a/enterprise/cli/testdata/coder_--help.golden +++ b/enterprise/cli/testdata/coder_--help.golden @@ -48,10 +48,6 @@ variables or flags. --no-version-warning bool, $CODER_NO_VERSION_WARNING Suppress warning when client and server versions do not match. - -z, --organization string, $CODER_ORGANIZATION - Select which organization (uuid or name) to use This overrides what is - present in the config file. - --token string, $CODER_SESSION_TOKEN Specify an authentication token. For security reasons setting CODER_SESSION_TOKEN is preferred.