Documentation ¶
Index ¶
Constants ¶
const ExitCodeExitError = 990
ExitCodeExitError of excuted cmd could not be determined
const ExitSuccessError = 991
ExitSuccessError ExitCode of successfully executed cmd could not be determined
const ExtCodeError = 993
ExtCodeError general error occurred when executing cmd
Variables ¶
This section is empty.
Functions ¶
func ExecuteDroxyCommand ¶ added in v0.5.1
Types ¶
type CommandBuilder ¶
type CommandBuilder interface {
BuildCommandFromConfig(commandName string, cfg *config.Configuration) (*exec.Cmd, error)
}
CommandBuilder builds a executable command object
type CommandResultHandler ¶
CommandResultHandler handles the result of an executed command
func NewCommandResultHandler ¶
func NewCommandResultHandler() CommandResultHandler
NewCommandResultHandler handles an executed command and it's error code to get the executed commands exit code.
type CommandRunner ¶
CommandRunner runs a command
func NewCommandRunner ¶
func NewCommandRunner() CommandRunner
NewCommandRunner returns a new commandRunner which can run a exec.Cmd
type ConfigLoader ¶
type ConfigLoader interface {
Load() *config.Configuration
}
ConfigLoader loads configuration
type ExecutableNameParser ¶
type ExecutableNameParser interface {
ParseCommandNameFromCommandLine() string
}
ExecutableNameParser parsed the name of the current executed file from cli arguments
func NewExecutableNameParser ¶
func NewExecutableNameParser() ExecutableNameParser
NewExecutableNameParser returns a new executableNameParser