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

Method templateVersions

cli/templateversions.go:17–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15)
16
17func (r *RootCmd) templateVersions() *serpent.Command {
18 cmd := &serpent.Command{
19 Use: "versions",
20 Short: "Manage different versions of the specified template",
21 Aliases: []string{"version"},
22 Long: FormatExamples(
23 Example{
24 Description: "List versions of a specific template",
25 Command: "coder templates versions list my-template",
26 },
27 ),
28 Handler: func(inv *serpent.Invocation) error {
29 return inv.Command.HelpHandler(inv)
30 },
31 Children: []*serpent.Command{
32 r.templateVersionsList(),
33 r.archiveTemplateVersion(),
34 r.unarchiveTemplateVersion(),
35 r.templateVersionsPromote(),
36 },
37 }
38
39 return cmd
40}
41
42func (r *RootCmd) templateVersionsList() *serpent.Command {
43 defaultColumns := []string{

Callers 1

templatesMethod · 0.95

Calls 5

templateVersionsListMethod · 0.95
FormatExamplesFunction · 0.85

Tested by

no test coverage detected