install

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "install <moduleName> [loadFuncName[,loadFuncName[,...]]]",
	Short: "install goner component and generate loaded code",
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		if len(args) < 1 {
			return errors.New("must provide package full name")
		}

		installModule = args[0]
		if len(args) > 1 {
			useLoaders = strings.Split(args[1], ",")
		}
		if err = Install(installModule, useLoaders, onlyPrintLoadFunc); err != nil {
			return
		}
		return nil
	},
}

Functions

func Install

func Install(moduleName string, loaderNames []string, onlyPrint bool) (err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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