package main import ( "fmt" "github.com/spf13/cobra" "org_data/cmd" ) func main() { rootCmd := &cobra.Command{Use: "org"} rootCmd.AddCommand(cmd.Buyer()) rootCmd.AddCommand(cmd.Winner()) if err := rootCmd.Execute(); err != nil { fmt.Println("rootCmd.Execute failed", err.Error()) } }