Versions in this module Expand all Collapse all v1 v1.0.1 Aug 23, 2019 Changes in this version + var ErrParse = errors.New("Unable to parse command line") + var ErrReturnCode = errors.New("Process returned with code %d") + var ErrRun = errors.New("Could not execute command") + func ShouldRun(command string, args ...string) (string, errors.Error) + func ShouldRunLine(commandLine string) (string, errors.Error) v1.0.0 Jun 19, 2019 Changes in this version + var DefaultExecutor Executor + var ParseError = errors.New("ParseError").Msg("Unable to parse command line") + var RunError = errors.New("RunError").Msg("Could not execute command") + func GetCommandLine(command string, args ...string) string + func Parse(commandLine string) (string, []string, errors.Error) + func Quote(str string) string + func Run(command string, args ...string) (string, int, errors.Error) + func RunLine(commandLine string) (string, int, errors.Error) + type Executor interface + Run func(command string, args ...string) (string, int, errors.Error) + RunLine func(commandLine string) (string, int, errors.Error) + type LocalExecutor struct + func NewLocalExecutor() *LocalExecutor + func (e *LocalExecutor) Run(command string, args ...string) (string, int, errors.Error) + func (e *LocalExecutor) RunLine(commandLine string) (string, int, errors.Error) + type MockExecutor struct + RunCallback func(command string, args ...string) (string, int, errors.Error) + func NewMockExecutor(runCallback func(command string, args ...string) (string, int, errors.Error)) *MockExecutor + func (e *MockExecutor) Run(command string, args ...string) (string, int, errors.Error) + func (e *MockExecutor) RunLine(commandLine string) (string, int, errors.Error)