run

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPlugins

func AllPlugins(cmdSet []*exec.Cmd) (err error)

AllPlugins executes specified plugins in a loop

func CLIContext

func CLIContext()

CLIContext executes all plugins with handling for the command line

func GetPackBinary

func GetPackBinary(name string) (binaryName string, err error)

GetPackBinary finds provided service pack in installation folder and return binary name

Types

type ServicePackError

type ServicePackError struct {
	ServicePack string
	Err         error
}

ServicePackError retains an error object and the name of the pack that generated it

func Plugin

func Plugin(cmd *exec.Cmd, spErrors []ServicePackError) ([]ServicePackError, error)

Plugin executes single plugin based on the provided command

type ServicePackErrors

type ServicePackErrors struct {
	Errors []ServicePackError
}

ServicePackErrors holds a list of errors and an Error() method so it adheres to the standard Error interface

func (*ServicePackErrors) Error

func (e *ServicePackErrors) Error() string

Jump to

Keyboard shortcuts

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