Documentation ¶
Overview ¶
Package exec provides a interface to run external commands as an abstraction layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecuteOptions ¶
type ExecuteOptions struct { Cmd string Args []string Envs []string Dir string Stdin io.Reader Stdout io.Writer Stderr io.Writer }
ExecuteOptions specify parameters to the Execute method.
type Executor ¶
type Executor interface { // Command executes the specified command. Command(opts ExecuteOptions) error }
Click to show internal directories.
Click to hide internal directories.