package cli import ( "fmt" "net/http" "strings" "time" "golang.org/x/xerrors" "github.com/coder/coder/v2/cli/clibase" "github.com/coder/coder/v2/cli/cliui" "github.com/coder/coder/v2/codersdk" ) func (r *RootCmd) templateEdit() *clibase.Cmd { var ( name string displayName string description string icon string defaultTTL time.Duration maxTTL time.Duration autostopRequirementDaysOfWeek []string autostopRequirementWeeks int64 failureTTL time.Duration inactivityTTL time.Duration allowUserCancelWorkspaceJobs bool allowUserAutostart bool allowUserAutostop bool ) client := new(codersdk.Client) cmd := &clibase.Cmd{ Use: "edit