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