Skip to content

Commit 6813959

Browse files
committed
fixup! fixup! feat(cli): add support command and accompanying unit tests
1 parent 3021185 commit 6813959

File tree

6 files changed

+7
-36
lines changed

6 files changed

+7
-36
lines changed

cli/support.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (r *RootCmd) support() *clibase.Cmd {
9595
}
9696
return nil
9797
},
98+
Hidden: true, // TODO: un-hide
9899
}
99100
cmd.Options = clibase.OptionSet{
100101
{

cli/testdata/coder_--help.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ SUBCOMMANDS:
4646
stat Show resource usage for the current workspace.
4747
state Manually manage Terraform state to fix broken workspaces
4848
stop Stop a workspace
49-
support Generate a support bundle to troubleshoot issues.
5049
templates Manage templates
5150
tokens Manage personal access tokens
5251
unfavorite Remove a workspace from your favorites
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
coder v0.0.0-devel
22

33
USAGE:
4-
coder support <workspace> [<agent>]
4+
coder support [flags] <workspace> [<agent>]
55

66
Generate a support bundle to troubleshoot issues.
77

88
This command generates a file containing detailed troubleshooting information
99
about the Coder deployment and workspace connections. You must specify a
1010
single workspace (and optionally an agent name).
1111

12+
OPTIONS:
13+
-o, --output string, $CODER_SUPPORT_BUNDLE_OUTPUT
14+
Path to which to output the generated support bundle. Defaults to
15+
coder-support-YYYYmmdd-HHMMSS.zip.
16+
1217
———
1318
Run `coder --help` for a list of global options.

docs/cli.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Coder — A tool for provisioning self-hosted development environments with Terr
5656
| [<code>stat</code>](./cli/stat.md) | Show resource usage for the current workspace. |
5757
| [<code>state</code>](./cli/state.md) | Manually manage Terraform state to fix broken workspaces |
5858
| [<code>stop</code>](./cli/stop.md) | Stop a workspace |
59-
| [<code>support</code>](./cli/support.md) | Generate a support bundle to troubleshoot issues. |
6059
| [<code>templates</code>](./cli/templates.md) | Manage templates |
6160
| [<code>tokens</code>](./cli/tokens.md) | Manage personal access tokens |
6261
| [<code>unfavorite</code>](./cli/unfavorite.md) | Remove a workspace from your favorites |

docs/cli/support.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/manifest.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -880,11 +880,6 @@
880880
"description": "Stop a workspace",
881881
"path": "cli/stop.md"
882882
},
883-
{
884-
"title": "support",
885-
"description": "Generate a support bundle to troubleshoot issues.",
886-
"path": "cli/support.md"
887-
},
888883
{
889884
"title": "templates",
890885
"description": "Manage templates",

0 commit comments

Comments
 (0)