diff --git a/README.md b/README.md index 834f2878c..2f8175bc2 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,7 @@ package cmd import ( "fmt" + "os" homedir "github.com/mitchellh/go-homedir" "github.com/spf13/cobra" @@ -255,6 +256,11 @@ func init() { rootCmd.AddCommand(initCmd) } +func er(msg interface{}) { + fmt.Println("Error:", msg) + os.Exit(1) +} + func initConfig() { if cfgFile != "" { // Use config file from the flag.