You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/support.go
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,26 @@ import (
21
21
)
22
22
23
23
func (r*RootCmd) support() *clibase.Cmd {
24
+
supportCmd:=&clibase.Cmd{
25
+
Use: "support { dump }",
26
+
Short: "Commands for troubleshooting issues with a Coder deployment.",
27
+
Handler: func(inv*clibase.Invocation) error {
28
+
returninv.Command.HelpHandler(inv)
29
+
},
30
+
Hidden: true, // TODO: un-hide once the must-haves from #12160 are completed.
31
+
Children: []*clibase.Cmd{
32
+
r.supportBundle(),
33
+
},
34
+
}
35
+
returnsupportCmd
36
+
}
37
+
38
+
func (r*RootCmd) supportBundle() *clibase.Cmd {
24
39
varoutputPathstring
25
40
client:=new(codersdk.Client)
26
41
cmd:=&clibase.Cmd{
27
-
Use: "support <workspace> [<agent>]",
28
-
Short: "Generate a support bundle to troubleshoot issues.",
42
+
Use: "bundle <workspace> [<agent>]",
43
+
Short: "Generate a support bundle to troubleshoot issues connecting to a workspace.",
29
44
Long: `This command generates a file containing detailed troubleshooting information about the Coder deployment and workspace connections. You must specify a single workspace (and optionally an agent name).`,
0 commit comments