Documentation ¶
Index ¶
Constants ¶
View Source
const IOCommandStderrBufSize = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOCommand ¶
type IOCommand struct { Cmd *exec.Cmd Stdin io.WriteCloser Stdout io.ReadCloser StderrBuf *bytes.Buffer ExitResult *IOCommandExitResult // contains filtered or unexported fields }
An IOCommand exposes a forked process's std(in|out|err) through the io.ReadWriteCloser interface.
func NewIOCommand ¶
func RunIOCommand ¶
func (*IOCommand) Close ¶
Terminate the child process and collect its exit status It is safe to call Close() multiple times.
type IOCommandError ¶
func (IOCommandError) Error ¶
func (e IOCommandError) Error() string
type IOCommandExitResult ¶
type IOCommandExitResult struct { Error error WaitStatus syscall.WaitStatus }
Click to show internal directories.
Click to hide internal directories.