Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
A generic command abstraction
func NewWithWorkDir ¶
NewWithWorkDir creates a new command from the provided workDir and the command arguments.
func (*Command) Run ¶
Run starts the command and waits for it to finish. It returns an error if the command execution was not possible at all, otherwise the Status. This method prints the commands output during execution
func (*Command) RunSilent ¶
Run starts the command and waits for it to finish. It returns an error if the command execution was not possible at all, otherwise the Status. This method does not print the output of the command during its execution.
func (*Command) RunSilentSuccess ¶
Run starts the command and waits for it to finish. It returns an error if the command execution was not successful. This method does not print the output of the command during its execution.
func (*Command) RunSuccess ¶
Run starts the command and waits for it to finish. It returns an error if the command execution was not successful.
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
A generic command exit status