package hmsecrets import ( "fmt" "os" "github.com/spf13/cobra" ) var conf config var rootCmd = &cobra.Command{ Use: "hmsecrets", Short: "Interact with the HandMade secrets service", } func Execute() { defer func() { if r := recover(); r != nil { fmt.Printf("%+v\n", r) os.Exit(1) } }() conf = mustLoadConfig() if err := rootCmd.Execute(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } }