package main import ( "fmt" "os" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "uptool", Short: "helper tool for the update process", Run: func(cmd *cobra.Command, args []string) { cmd.Usage() }, } func main() { if err := rootCmd.Execute(); err != nil { fmt.Println(err) os.Exit(1) } }