package main import ( "fmt" "cnb.cool/looc/git-cnb/app" "github.com/spf13/cobra" ) func main() { cmd := NewCmd() cmd.AddCommand(app.VersionCmd) cmd.AddCommand(app.InfoCmd) cmd.AddCommand(app.StatsCmd) cmd.AddCommand(app.IssuesCmd) cmd.AddCommand(app.ReleasesCmd) if err := cmd.Execute(); err != nil { panic(err) } } // NewCmd ... func NewCmd() *cobra.Command { cmd := &cobra.Command{ Use: "git-cnb", Run: func(cmd *cobra.Command, args []string) { fmt.Println("git-cnb CLI Version: v0.0.1") }, } return cmd }