MCPcopy Index your code
hub / github.com/coder/coder / schedules

Method schedules

cli/schedule.go:56–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54)
55
56func (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.
76func (r *RootCmd) scheduleShow() *serpent.Command {

Callers 1

CoreSubcommandsMethod · 0.95

Calls 4

scheduleShowMethod · 0.95
scheduleStartMethod · 0.95
scheduleStopMethod · 0.95
scheduleExtendMethod · 0.95

Tested by

no test coverage detected