exit.UsageT("Cannot use both --output and --format options")
}
switchstrings.ToLower(addonListOutput){
case"list":
printAddonsList()
...
...
@@ -66,14 +62,6 @@ var addonsListCmd = &cobra.Command{
}
funcinit(){
addonsListCmd.Flags().StringVarP(
&addonListFormat,
"format",
"f",
defaultAddonListFormat,
`Go template format string for the addon list output. The format for Go templates can be found here: https://golang.org/pkg/text/template/
For the list of accessible variables for the template, see the struct values here: https://godoc.org/k8s.io/minikube/cmd/minikube/cmd/config#AddonListTemplate`)
addonsListCmd.Flags().StringVarP(
&addonListOutput,
"output",
...
...
@@ -84,6 +72,13 @@ For the list of accessible variables for the template, see the struct values her
AddonsCmd.AddCommand(addonsListCmd)
}
variconFromStatus=func(addonStatusbool)string{
ifaddonStatus{
return"✅"
}
return" "// because emoji indentation is different