mirror of
https://github.com/spf13/cobra
synced 2024-12-28 23:37:09 +00:00
cmd: Don't print errors from execute to prevent duplication of errors
This commit is contained in:
parent
c446db21d3
commit
4a1a7b086e
1 changed files with 1 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue