package main import ( "demo/servicegen" "github.com/spf13/cobra" ) func main() { rootCmd := cobra.Command{Use: "hskctl"} rootCmd.AddCommand(servicegen.Command()) err := rootCmd.Execute() if err != nil { panic(err) } }