You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exit.UsageT("Cannot use both --output and --format options")
54
+
}
55
+
56
+
switchstrings.ToLower(addonListOutput) {
57
+
case"list":
58
+
PrintAddonsListList()
59
+
case"json":
60
+
PrintAddonsListJSON()
50
61
}
51
62
},
52
63
}
@@ -59,6 +70,14 @@ func init() {
59
70
defaultAddonListFormat,
60
71
`Go template format string for the addon list output. The format for Go templates can be found here: https://golang.org/pkg/text/template/
61
72
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`)
73
+
74
+
addonsListCmd.Flags().StringVarP(
75
+
&addonListOutput,
76
+
"output",
77
+
"o",
78
+
"list",
79
+
`minikube addons list --output OUTPUT. json, list`)
0 commit comments