Set SilenceUsage: true, for commands to prevent usages from being printed every time an error occurs.
before:
idpbuilder get secrets
Error: getting kube config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
Usage:
idpbuilder get secrets [flags]
Flags:
-h, --help help for secrets
Global Flags:
--color Enable colored log messages.
-l, --log-level string Set the log verbosity. Supported values are: debug, info, warn, and error. (default "info")
-o, --output string Output format. json or yaml.
-p, --packages strings names of packages.
getting kube config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
After:
idpbuilder get secrets
Error: getting kube config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
getting kube config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
Set
SilenceUsage: true,
for commands to prevent usages from being printed every time an error occurs.before:
After:
fixes: #439