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 ¶
This section is empty.
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 { // Execute executes the specified command. Execute(opts ExecuteOptions) error }
type OsExecutor ¶
type OsExecutor struct{}
func (OsExecutor) Execute ¶
func (OsExecutor) Execute(opts ExecuteOptions) error
Click to show internal directories.
Click to hide internal directories.