init
This commit is contained in:
22
cmd/ctl/main.go
Normal file
22
cmd/ctl/main.go
Normal file
@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"Edu/cmd/ctl/command/model"
|
||||
"Edu/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(model.ModelCommand)
|
||||
}
|
||||
|
||||
func main() {
|
||||
_ = rootCmd.Execute()
|
||||
}
|
Reference in New Issue
Block a user