Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pipe ¶
func Pipe(pipe io.ReadCloser, event OutputEvent)
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) CustomRun ¶
func (command *Command) CustomRun(outEvent OutputEvent, errEvent OutputEvent) string
type Creator ¶
type Creator interface {
Create(command string, arg ...string) Executable
}
type Executable ¶
type Executable interface { Write(b []byte) error CustomRun(outEvent OutputEvent, errEvent OutputEvent) string Run() []string }
type OutputEvent ¶
type OutputEvent = func(string)
Click to show internal directories.
Click to hide internal directories.