Documentation
¶
Index ¶
- func SetDebug(value bool)
- type Result
- func (c *Result) Args() []string
- func (c *Result) Command() string
- func (c *Result) Err() error
- func (c *Result) Output() string
- func (c *Result) OutputContainsLine(line string) bool
- func (c *Result) OutputContainsText(text string) bool
- func (c *Result) OutputLines() []string
- func (c *Result) OutputSanitized() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result contains the results of a command run in a subshell.
func RunDirEnv ¶
RunDirEnv executes the given command in the given directory, using the given environment variables.
func (*Result) Err ¶
Err returns the error that this command encountered. Runs the command if it hasn't so far.
func (*Result) OutputContainsLine ¶
OutputContainsLine returns whether the output of this command contains the given line
func (*Result) OutputContainsText ¶
OutputContainsText returns whether the output of this command contains the given text
func (*Result) OutputLines ¶
OutputLines returns the output of this command, split into lines. Runs if it hasn't so far.
func (*Result) OutputSanitized ¶
OutputSanitized provides the output without ANSI color codes.
Click to show internal directories.
Click to hide internal directories.