Skip to content

Commit 36bff0a

Browse files
authored
fix root.go.golden (#1552)
1 parent 1854bb5 commit 36bff0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cobra/cmd/testdata/root.go.golden

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ to quickly create a Cobra application.`,
4343
// Execute adds all child commands to the root command and sets flags appropriately.
4444
// This is called by main.main(). It only needs to happen once to the rootCmd.
4545
func Execute() {
46-
cobra.CheckErr(rootCmd.Execute())
46+
err := rootCmd.Execute()
47+
if err != nil {
48+
os.Exit(1)
49+
}
4750
}
4851

4952
func init() {

0 commit comments

Comments
 (0)