工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
481 B

package main
import (
"fmt"
"git.ouxuan.net/tommy/hasaki-ctl/servicegen"
"github.com/spf13/cobra"
)
func main() {
rootCmd := &cobra.Command{Use: "hasaki-ctl"}
version := &cobra.Command{
Use: "version",
Short: "version for hasaki-ctl",
Long: "version for hasaki-ctl",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("version 1.0.1")
},
}
rootCmd.AddCommand(version, servicegen.Command())
err := rootCmd.Execute()
if err != nil {
panic(err)
}
}