module

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

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)
	},
}
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 == "" {
			style.ErrorPrint("module is required")
			os.Exit(1)
		}
		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

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL