cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvoidGoModWarnings

func AvoidGoModWarnings()

AvoidGoModWarnings does nothing but avoid warnings about unused packages in go.mod

func Command added in v0.2.0

func Command(name string, arg ...string) *exec.Cmd

Command executes the given command on Windows

func Execute

func Execute() error

Execute is the start of the flow. It finds an executes the appropriate command based on the args.

func ExecutePlugin

func ExecutePlugin(executablePath string, cmdArgs, environment []string) error

ExecutePlugin executes a plugin given the path to the binary, args and environment variables

func GetPluginCommand

func GetPluginCommand() *cobra.Command

GetPluginCommand returns the plugin command

func GetPluginInstallCommand added in v0.2.0

func GetPluginInstallCommand() *cobra.Command

GetPluginInstallCommand returns a command to install a plugin.

func GetPluginListSubCommand

func GetPluginListSubCommand() *cobra.Command

GetPluginListSubCommand returns a command to list all the installed plugins.

func GetPluginTidyCommand added in v0.2.0

func GetPluginTidyCommand() *cobra.Command

GetPluginTidyCommand returns a command to tidy the plugins directory.

func GetPluginUninstallCommand added in v0.2.0

func GetPluginUninstallCommand() *cobra.Command

GetPluginUninstallCommand returns a command to uninstall a plugin.

func GetRootCommand

func GetRootCommand() *cobra.Command

GetRootCommand returns the root command that contains all the other commands.

func GetVersionCommand

func GetVersionCommand() *cobra.Command

GetVersionCommand returns the version command

Types

This section is empty.

Jump to

Keyboard shortcuts

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