Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "gbb", Short: "", Long: ``, Run: func(cmd *cobra.Command, args []string) { if !util.FileExist("./gbb.json") { genConfigFile(confFile) return } conf, err := config.Load(confFile) if err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(-1) } if err := tool.Build(conf, debug, wd); err != nil { fmt.Fprintf(os.Stderr, err.Error()) os.Exit(-1) } }, }
RootCmd represents the base command when called without any subcommands
View Source
var (
// Version 版本号
Version = "0.1.0"
)
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.