module

package
v0.0.1-beta Latest Latest
Warning

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

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

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

func RemoveModule(module string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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