package gothub import ( "fmt" "os" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "gothub", Short: "An alternative front-end for GitHub.", Long: `An alternative front-end for GitHub, maintained by Odyssey346, Midou36O and Arya.`, Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, } func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Fprintf(os.Stderr, "Error running GotHub's CLI: %v", err) os.Exit(1) } }