2021-09-28 11:47:19 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-11-25 09:58:08 +08:00
|
|
|
"SciencesServer/cmd/ctl/command/controller"
|
2021-09-28 11:47:19 +08:00
|
|
|
"SciencesServer/cmd/ctl/command/model"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var rootCmd = &cobra.Command{
|
|
|
|
Use: "ctl",
|
|
|
|
Long: "ctl is a command line tool for serve",
|
2022-02-15 17:19:23 +08:00
|
|
|
Version: "v1.0",
|
2021-09-28 11:47:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2021-11-25 09:58:08 +08:00
|
|
|
rootCmd.AddCommand(controller.ControllerCommand)
|
2021-09-28 11:47:19 +08:00
|
|
|
rootCmd.AddCommand(model.ModelCommand)
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
_ = rootCmd.Execute()
|
|
|
|
}
|