Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { // Errors writes command errors to stderr during execution. Errors(cmd *exec.Cmd, targetDir string, action string) error // Output returns the output of the command as a string. Output(cmd *exec.Cmd, targetDir string, action string) (string, error) // CommandExists returns true if the command exists in the path. CommandExists(cmd string) bool }
func NewOsExecutor ¶
func NewOsExecutor() Executor
type OsExecutor ¶
type OsExecutor struct{}
OsExecutor implements Executor using the os/exec package.
func (OsExecutor) CommandExists ¶
func (OsExecutor) CommandExists(cmd string) bool
Click to show internal directories.
Click to hide internal directories.