@@ -67,21 +67,22 @@ func schedules() *cobra.Command {
67
67
Long : scheduleDescriptionLong ,
68
68
}
69
69
70
- scheduleCmd .AddCommand (scheduleShow ())
71
- scheduleCmd .AddCommand (scheduleStart ())
72
- scheduleCmd .AddCommand (scheduleStop ())
73
- scheduleCmd .AddCommand (scheduleOverride ())
70
+ scheduleCmd .AddCommand (
71
+ scheduleShow (),
72
+ scheduleStart (),
73
+ scheduleStop (),
74
+ scheduleOverride (),
75
+ )
74
76
75
77
return scheduleCmd
76
78
}
77
79
78
80
func scheduleShow () * cobra.Command {
79
81
showCmd := & cobra.Command {
80
- Annotations : workspaceCommand ,
81
- Use : "show <workspace-name>" ,
82
- Short : "Show workspace schedule" ,
83
- Long : scheduleShowDescriptionLong ,
84
- Args : cobra .ExactArgs (1 ),
82
+ Use : "show <workspace-name>" ,
83
+ Short : "Show workspace schedule" ,
84
+ Long : scheduleShowDescriptionLong ,
85
+ Args : cobra .ExactArgs (1 ),
85
86
RunE : func (cmd * cobra.Command , args []string ) error {
86
87
client , err := createClient (cmd )
87
88
if err != nil {
@@ -101,8 +102,7 @@ func scheduleShow() *cobra.Command {
101
102
102
103
func scheduleStart () * cobra.Command {
103
104
cmd := & cobra.Command {
104
- Annotations : workspaceCommand ,
105
- Use : "start <workspace-name> { <start-time> [day-of-week] [location] | manual }" ,
105
+ Use : "start <workspace-name> { <start-time> [day-of-week] [location] | manual }" ,
106
106
Example : formatExamples (
107
107
example {
108
108
Description : "Set the workspace to start at 9:30am (in Dublin) from Monday to Friday" ,
@@ -153,9 +153,8 @@ func scheduleStart() *cobra.Command {
153
153
154
154
func scheduleStop () * cobra.Command {
155
155
return & cobra.Command {
156
- Annotations : workspaceCommand ,
157
- Args : cobra .ExactArgs (2 ),
158
- Use : "stop <workspace-name> { <duration> | manual }" ,
156
+ Args : cobra .ExactArgs (2 ),
157
+ Use : "stop <workspace-name> { <duration> | manual }" ,
159
158
Example : formatExamples (
160
159
example {
161
160
Command : "coder schedule stop my-workspace 2h30m" ,
@@ -200,9 +199,8 @@ func scheduleStop() *cobra.Command {
200
199
201
200
func scheduleOverride () * cobra.Command {
202
201
overrideCmd := & cobra.Command {
203
- Args : cobra .ExactArgs (2 ),
204
- Annotations : workspaceCommand ,
205
- Use : "override-stop <workspace-name> <duration from now>" ,
202
+ Args : cobra .ExactArgs (2 ),
203
+ Use : "override-stop <workspace-name> <duration from now>" ,
206
204
Example : formatExamples (
207
205
example {
208
206
Command : "coder schedule override-stop my-workspace 90m" ,
0 commit comments