package cli import ( "fmt" "strings" "time" "github.com/google/uuid" "github.com/spf13/cobra" "golang.org/x/xerrors" "github.com/coder/coder/cli/cliui" "github.com/coder/coder/codersdk" ) func templateVersions() *cobra.Command { cmd := &cobra.Command{ Use: "versions", Short: "Manage different versions of the specified template", Aliases: []string{"version"}, Example: formatExamples( example{ Description: "List versions of a specific template", Command: "coder templates versions list my-template", }, ), RunE: func(cmd *cobra.Command, args []string) error { return cmd.Help() }, } cmd.AddCommand( templateVersionsList(), ) return cmd } func templateVersionsList() *cobra.Command { return &cobra.Command{ Use: "list