Documentation ¶
Index ¶
- func AvoidGoModWarnings()
- func Command(name string, arg ...string) *exec.Cmd
- func Execute() error
- func ExecutePlugin(executablePath string, cmdArgs, environment []string) error
- func GetPluginCommand() *cobra.Command
- func GetPluginInstallCommand() *cobra.Command
- func GetPluginListSubCommand() *cobra.Command
- func GetPluginTidyCommand() *cobra.Command
- func GetPluginUninstallCommand() *cobra.Command
- func GetRootCommand() *cobra.Command
- func GetVersionCommand() *cobra.Command
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 Execute ¶
func Execute() error
Execute is the start of the flow. It finds an executes the appropriate command based on the args.
func ExecutePlugin ¶
ExecutePlugin executes a plugin given the path to the binary, args and environment variables
func GetPluginCommand ¶
GetPluginCommand returns the plugin command
func GetPluginInstallCommand ¶ added in v0.2.0
GetPluginInstallCommand returns a command to install a plugin.
func GetPluginListSubCommand ¶
GetPluginListSubCommand returns a command to list all the installed plugins.
func GetPluginTidyCommand ¶ added in v0.2.0
GetPluginTidyCommand returns a command to tidy the plugins directory.
func GetPluginUninstallCommand ¶ added in v0.2.0
GetPluginUninstallCommand returns a command to uninstall a plugin.
func GetRootCommand ¶
GetRootCommand returns the root command that contains all the other commands.
func GetVersionCommand ¶
GetVersionCommand returns the version command
Types ¶
This section is empty.