Documentation
¶
Overview ¶
module.go
Package get defines the 'module' subcommand for the Kuma CLI. It handles generating project scaffolds based on Go templates.
module.go
Package get defines the 'module' subcommand for the Kuma CLI. It handles generating project scaffolds based on Go templates.
module.go
Package get defines the 'module' subcommand for the Kuma CLI. It handles generating project scaffolds based on Go templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Module string
)
View Source
var ModuleAddCmd = &cobra.Command{ Use: "add", Short: "Add a Kuma module from a GitHub repository", Run: func(cmd *cobra.Command, args []string) { if Repository == "" { Repository = handleTea() } download(cmd) }, }
Add a Kuma module from a GitHub repository
View Source
var ModuleCmd = &cobra.Command{ Use: "module", Short: "Manage Kuma modules", Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
View Source
var ModuleRmCmd = &cobra.Command{ Use: "rm", Short: "Remove a Kuma module", Run: func(cmd *cobra.Command, args []string) { if Module != "" { err := RemoveModule(Module) if err != nil { style.ErrorPrint("error removing module: " + err.Error()) os.Exit(1) } } }, }
Add a Kuma module from a GitHub repository
View Source
var (
Repository string
)
Functions ¶
func RemoveModule ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.