cmd: Don't print errors from execute to prevent duplication of errors
This commit is contained in:
		| @ -36,9 +36,7 @@ to quickly create a Cobra application.`, | ||||
|  | ||||
| // Execute executes the root command. | ||||
| func Execute() { | ||||
| 	if err := rootCmd.Execute(); err != nil { | ||||
| 		er(err) | ||||
| 	} | ||||
| 	rootCmd.Execute() | ||||
| } | ||||
|  | ||||
| func init() { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user