package cli import ( "fmt" "net/http" "strings" "time" "golang.org/x/xerrors" "github.com/coder/pretty" "github.com/coder/serpent" "github.com/coder/coder/v2/cli/cliui" "github.com/coder/coder/v2/codersdk" ) func (r *RootCmd) templateEdit() *serpent.Command { const deprecatedFlagName = "deprecated" var ( name string displayName string description string icon string defaultTTL time.Duration activityBump time.Duration autostopRequirementDaysOfWeek []string autostopRequirementWeeks int64 autostartRequirementDaysOfWeek []string failureTTL time.Duration dormancyThreshold time.Duration dormancyAutoDeletion time.Duration allowUserCancelWorkspaceJobs bool allowUserAutostart bool allowUserAutostop bool requireActiveVersion bool deprecationMessage string disableEveryone bool ) client := new(codersdk.Client) cmd := &serpent.Command{ Use: "edit