Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandResult ¶
type CommandResult struct {
Stdout bytes.Buffer
Stderr bytes.Buffer
Status int
Success bool
Err error
}
func RunBashCommand ¶ added in v0.0.2
func RunBashCommand(command string, ops ...Option) *CommandResult
func RunCommand ¶
func RunCommand(command []string, ops ...Option) *CommandResult
func RunCommandForLast ¶
func RunCommandForLast(commands [][]string, ops ...Option) (bool, *CommandResult)
RunCommandForLast run commands and return last result
func (*CommandResult) OutputOrFatal ¶
func (r *CommandResult) OutputOrFatal()
func (*CommandResult) SimpleLog ¶ added in v0.0.3
func (r *CommandResult) SimpleLog() string
Click to show internal directories.
Click to hide internal directories.