Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOk status = iota StatusErr )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶ added in v1.1.0
type CommandExecutor struct{}
func (CommandExecutor) Execute ¶ added in v1.1.0
func (e CommandExecutor) Execute(opts ExecuteOptions, out io.Writer) error
func (CommandExecutor) RawExecute ¶ added in v1.1.0
type ExecuteOptions ¶ added in v1.1.3
type ExecuteOptions struct {
// contains filtered or unexported fields
}
ExecutorOptions contains the options that control the execution.
type Executor ¶ added in v1.1.0
type Executor interface {
Execute(opts ExecuteOptions, out io.Writer) error
RawExecute(command string, args ...string) (*bytes.Buffer, error)
}
Executor provides an interface for command execution. It is used here for testing purpose mostly.
Click to show internal directories.
Click to hide internal directories.