()
| 54 | ) |
| 55 | |
| 56 | func (r *RootCmd) schedules() *serpent.Command { |
| 57 | scheduleCmd := &serpent.Command{ |
| 58 | Annotations: workspaceCommand, |
| 59 | Use: "schedule { show | start | stop | extend } <workspace>", |
| 60 | Short: "Schedule automated start and stop times for workspaces", |
| 61 | Handler: func(inv *serpent.Invocation) error { |
| 62 | return inv.Command.HelpHandler(inv) |
| 63 | }, |
| 64 | Children: []*serpent.Command{ |
| 65 | r.scheduleShow(), |
| 66 | r.scheduleStart(), |
| 67 | r.scheduleStop(), |
| 68 | r.scheduleExtend(), |
| 69 | }, |
| 70 | } |
| 71 | |
| 72 | return scheduleCmd |
| 73 | } |
| 74 | |
| 75 | // scheduleShow() is just a wrapper for list() with some different defaults. |
| 76 | func (r *RootCmd) scheduleShow() *serpent.Command { |
no test coverage detected