Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InfoCmd = &cobra.Command{ Use: "info", Short: "print details for about generators", Long: infoLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error err = InfoRun(args) if err != nil { fmt.Println(err) os.Exit(1) } }, }
View Source
var InitCmd = &cobra.Command{ Use: "init", Short: "initialize a new generator", Long: initLong, Run: func(cmd *cobra.Command, args []string) { ga.SendCommandPath(cmd.CommandPath()) var err error if 0 >= len(args) { fmt.Println("missing required argument: 'module'") cmd.Usage() os.Exit(1) } var module string if 0 < len(args) { module = args[0] } err = InitRun(module) if err != nil { fmt.Println(err) os.Exit(1) } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.