diff --git a/cmd/root.go b/cmd/root.go index c15eb73..489589f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -22,7 +22,6 @@ THE SOFTWARE. package cmd import ( - "fmt" "os" "github.com/spf13/cobra" @@ -46,19 +45,10 @@ Our goal is not to replace git, but to make it easier to use for the most common func Execute() { err := rootCmd.Execute() if err != nil { - fmt.Println(err) os.Exit(1) } } func init() { - // Here you will define your flags and configuration settings. - // Cobra supports persistent flags, which, if defined here, - // will be global for your application. - // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.gut.yaml)") - - // Cobra also supports local flags, which will only run - // when this action is called directly. - rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") }