File tree Expand file tree Collapse file tree 8 files changed +24
-0
lines changed Expand file tree Collapse file tree 8 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ func parameters() *cobra.Command {
20
20
// constructing curl requests.
21
21
Hidden : true ,
22
22
Aliases : []string {"params" },
23
+ RunE : func (cmd * cobra.Command , args []string ) error {
24
+ return cmd .Help ()
25
+ },
23
26
}
24
27
cmd .AddCommand (
25
28
parameterList (),
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ func schedules() *cobra.Command {
58
58
Annotations : workspaceCommand ,
59
59
Use : "schedule { show | start | stop | override } <workspace>" ,
60
60
Short : "Schedule automated start and stop times for workspaces" ,
61
+ RunE : func (cmd * cobra.Command , args []string ) error {
62
+ return cmd .Help ()
63
+ },
61
64
}
62
65
63
66
scheduleCmd .AddCommand (
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ func state() *cobra.Command {
17
17
cmd := & cobra.Command {
18
18
Use : "state" ,
19
19
Short : "Manually manage Terraform state to fix broken workspaces" ,
20
+ RunE : func (cmd * cobra.Command , args []string ) error {
21
+ return cmd .Help ()
22
+ },
20
23
}
21
24
cmd .AddCommand (statePull (), statePush ())
22
25
return cmd
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ func templates() *cobra.Command {
30
30
Command : "coder templates push my-template" ,
31
31
},
32
32
),
33
+ RunE : func (cmd * cobra.Command , args []string ) error {
34
+ return cmd .Help ()
35
+ },
33
36
}
34
37
cmd .AddCommand (
35
38
templateCreate (),
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ func templateVersions() *cobra.Command {
24
24
Command : "coder templates versions list my-template" ,
25
25
},
26
26
),
27
+ RunE : func (cmd * cobra.Command , args []string ) error {
28
+ return cmd .Help ()
29
+ },
27
30
}
28
31
cmd .AddCommand (
29
32
templateVersionsList (),
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ func tokens() *cobra.Command {
32
32
Command : "coder tokens rm WuoWs4ZsMX" ,
33
33
},
34
34
),
35
+ RunE : func (cmd * cobra.Command , args []string ) error {
36
+ return cmd .Help ()
37
+ },
35
38
}
36
39
cmd .AddCommand (
37
40
createToken (),
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ func users() *cobra.Command {
11
11
Short : "Manage users" ,
12
12
Use : "users" ,
13
13
Aliases : []string {"user" },
14
+ RunE : func (cmd * cobra.Command , args []string ) error {
15
+ return cmd .Help ()
16
+ },
14
17
}
15
18
cmd .AddCommand (
16
19
userCreate (),
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ func features() *cobra.Command {
21
21
Short : "List Enterprise features" ,
22
22
Use : "features" ,
23
23
Aliases : []string {"feature" },
24
+ RunE : func (cmd * cobra.Command , args []string ) error {
25
+ return cmd .Help ()
26
+ },
24
27
}
25
28
cmd .AddCommand (
26
29
featuresList (),
You can’t perform that action at this time.
0 commit comments