mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
fix root.go.golden (#1552)
This commit is contained in:
parent
1854bb5c96
commit
36bff0a4d5
1 changed files with 4 additions and 1 deletions
5
cobra/cmd/testdata/root.go.golden
vendored
5
cobra/cmd/testdata/root.go.golden
vendored
|
@ -43,7 +43,10 @@ to quickly create a Cobra application.`,
|
|||
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
||||
func Execute() {
|
||||
cobra.CheckErr(rootCmd.Execute())
|
||||
err := rootCmd.Execute()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in a new issue