Files
2021-11-25 09:58:08 +08:00

24 lines
435 B
Go

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()
}