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

Method templates

cli/templates.go:15–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func (r *RootCmd) templates() *serpent.Command {
16 cmd := &serpent.Command{
17 Use: "templates",
18 Short: "Manage templates",
19 Long: "Templates are written in standard Terraform and describe the infrastructure for workspaces\n" + FormatExamples(
20 Example{
21 Description: "Create or push an update to the template. Your developers can update their workspaces",
22 Command: "coder templates push my-template",
23 },
24 ),
25 Aliases: []string{"template"},
26 Handler: func(inv *serpent.Invocation) error {
27 return inv.Command.HelpHandler(inv)
28 },
29 Children: []*serpent.Command{
30 r.templateCreate(),
31 r.templateEdit(),
32 r.templateInit(),
33 r.templateList(),
34 r.templatePush(),
35 r.templateVersions(),
36 r.templatePresets(),
37 r.templateDelete(),
38 r.templatePull(),
39 r.archiveTemplateVersions(),
40 },
41 }
42
43 return cmd
44}
45
46func selectTemplate(inv *serpent.Invocation, client *codersdk.Client, organization codersdk.Organization) (codersdk.Template, error) {
47 var empty codersdk.Template

Callers 1

CoreSubcommandsMethod · 0.95

Calls 11

templateCreateMethod · 0.95
templateEditMethod · 0.95
templateInitMethod · 0.95
templateListMethod · 0.95
templatePushMethod · 0.95
templateVersionsMethod · 0.95
templatePresetsMethod · 0.95
templateDeleteMethod · 0.95
templatePullMethod · 0.95
FormatExamplesFunction · 0.85

Tested by

no test coverage detected