Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Root = &cobra.Command{ Use: "delivery", Aliases: []string{"dv"}, Short: "Delivery 指令", Long: `Delivery 指令`, Run: func(cmd *cobra.Command, args []string) { if pkg == "" || filename == "" || destination == "" { cmd.Help() return } }, } HttpRoot = &cobra.Command{ Use: "http", Aliases: []string{"api"}, Short: "Http/API 指令", Long: "Http/API 指令", Run: func(cmd *cobra.Command, args []string) { if pkg == "" || filename == "" || destination == "" { cmd.Help() return } repo := builder2.NewHttpBuilder(source+"/"+pkg, filename, destination, pkg) repo.Save(repo.General()) }, } CliRoot = &cobra.Command{ Use: "cli", Short: "Cli 指令", Long: "Cli 指令", Run: func(cmd *cobra.Command, args []string) { if pkg == "" || filename == "" || destination == "" { cmd.Help() return } }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.