kubernetes/cmd/kubelet
Odin Ugedal 7caf51daa4
Remove duplicate error messages from cli commands
Since we never use the cobras "SilenceErrors" or "SilenceUsage",
a command executed with "cmd.Execute()" will never return an error
without printing it.

The current behavior results in all error messages being printed twice:

Example:

$ kubectl abc
Error: unknown command "abc" for "kubectl"
Run 'kubectl --help' for usage.
unknown command "abc" for "kubectl"

This applies to all cli commands using Cobra. To verify, follow the code
path of the Execute function:

https://github.com/spf13/cobra/blob/c439c4fa0937/command.go#L793
Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-06-27 21:55:14 +02:00
..
app Remove ovirt/cloudstack/photon cloud providers 2019-06-10 12:50:53 -04:00
BUILD move signal handling for hyperkube apiserver and kubelet commands out of hyperkube main command 2019-05-09 21:27:44 -07:00
kubelet.go Remove duplicate error messages from cli commands 2019-06-27 21:55:14 +02:00
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00