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
returnerrors.Errorf("invalid value for --%s", colorFlag)
85
+
}
86
+
73
87
restConfig, err:=cf.ToRESTConfig()
74
88
iferr!=nil {
75
89
returnerr
@@ -165,6 +179,7 @@ func init() {
165
179
cf=genericclioptions.NewConfigFlags(true)
166
180
167
181
rootCmd.Flags().BoolP(allNamespacesFlag, "A", false, "query all objects in all API groups, both namespaced and non-namespaced")
182
+
rootCmd.Flags().StringP(colorFlag, "c", "auto", "Enable or disable color output. This can be 'always', 'never', or 'auto' (default = use color only if using tty). The flag is overridden by the NO_COLOR env variable if set.")
0 commit comments