Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandRunner ¶ added in v0.3.0
type CommandRunner struct{}
CommandRunner is the implementation of the Runner interface that runs OS commands.
func (CommandRunner) RunCommand ¶ added in v0.3.0
RunCommand runs the given OS command with the specified options, and returns the output as a string, along with any error that occurred.
type Option ¶ added in v0.3.0
type Option func(*commandOptions)
func WithStderr ¶ added in v0.3.0
WithStderr sets the stderr for the command.
func WithStdout ¶ added in v0.3.0
WithStdout sets the stdout for the command.
Click to show internal directories.
Click to hide internal directories.