cmd: Don't print errors from execute to prevent duplication of errors

This commit is contained in:
Albert Nigmatzianov 2017-05-28 12:23:49 +02:00
parent c446db21d3
commit 4a1a7b086e

View file

@ -36,9 +36,7 @@ to quickly create a Cobra application.`,
// Execute executes the root command. // Execute executes the root command.
func Execute() { func Execute() {
if err := rootCmd.Execute(); err != nil { rootCmd.Execute()
er(err)
}
} }
func init() { func init() {