main.go 302 B

12345678910111213141516
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/spf13/cobra"
  5. "org_data/cmd"
  6. )
  7. func main() {
  8. rootCmd := &cobra.Command{Use: "crocodile"}
  9. rootCmd.AddCommand(cmd.Buyer())
  10. rootCmd.AddCommand(cmd.Server())
  11. if err := rootCmd.Execute(); err != nil {
  12. fmt.Println("rootCmd.Execute failed", err.Error())
  13. }
  14. }