()
| 15 | ) |
| 16 | |
| 17 | func (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 | |
| 42 | func (r *RootCmd) templateVersionsList() *serpent.Command { |
| 43 | defaultColumns := []string{ |
no test coverage detected