fix root.go.golden

This commit is contained in:
umarcor 2021-12-08 00:17:42 +01:00
parent 1854bb5c96
commit 87cc2eb264

View file

@ -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() {