package main import ( "SciencesServer/cmd/ctl/command/controller" "SciencesServer/cmd/ctl/command/model" "SciencesServer/config" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "ctl", Long: "ctl is a command line tool for serve", Version: *config.Version, } func init() { rootCmd.AddCommand(controller.ControllerCommand) rootCmd.AddCommand(model.ModelCommand) } func main() { _ = rootCmd.Execute() }