MCPcopy Create free account
hub / github.com/coder/coder / prebuilds

Method prebuilds

enterprise/cli/prebuilds.go:13–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func (r *RootCmd) prebuilds() *serpent.Command {
14 cmd := &serpent.Command{
15 Use: "prebuilds",
16 Short: "Manage Coder prebuilds",
17 Long: "Administrators can use these commands to manage prebuilt workspace settings.\n" + cli.FormatExamples(
18 cli.Example{
19 Description: "Pause Coder prebuilt workspace reconciliation.",
20 Command: "coder prebuilds pause",
21 },
22 cli.Example{
23 Description: "Resume Coder prebuilt workspace reconciliation if it has been paused.",
24 Command: "coder prebuilds resume",
25 },
26 ),
27 Aliases: []string{"prebuild"},
28 Handler: func(inv *serpent.Invocation) error {
29 return inv.Command.HelpHandler(inv)
30 },
31 Children: []*serpent.Command{
32 r.pausePrebuilds(),
33 r.resumePrebuilds(),
34 },
35 }
36 return cmd
37}
38
39func (r *RootCmd) pausePrebuilds() *serpent.Command {
40 cmd := &serpent.Command{

Callers 1

enterpriseOnlyMethod · 0.95

Calls 3

pausePrebuildsMethod · 0.95
resumePrebuildsMethod · 0.95
FormatExamplesFunction · 0.92

Tested by

no test coverage detected