var ErrExecutableNotFound …
type Interface …
type Cmd …
type ExitError …
type executor …
func New() Interface { … }
func (executor *executor) Command(cmd string, args ...string) Cmd { … }
func (executor *executor) CommandContext(ctx context.Context, cmd string, args ...string) Cmd { … }
func (executor *executor) LookPath(file string) (string, error) { … }
type cmdWrapper …
var _ …
func (cmd *cmdWrapper) SetDir(dir string) { … }
func (cmd *cmdWrapper) SetStdin(in io.Reader) { … }
func (cmd *cmdWrapper) SetStdout(out io.Writer) { … }
func (cmd *cmdWrapper) SetStderr(out io.Writer) { … }
func (cmd *cmdWrapper) SetEnv(env []string) { … }
func (cmd *cmdWrapper) StdoutPipe() (io.ReadCloser, error) { … }
func (cmd *cmdWrapper) StderrPipe() (io.ReadCloser, error) { … }
func (cmd *cmdWrapper) Start() error { … }
func (cmd *cmdWrapper) Wait() error { … }
func (cmd *cmdWrapper) Run() error { … }
func (cmd *cmdWrapper) CombinedOutput() ([]byte, error) { … }
func (cmd *cmdWrapper) Output() ([]byte, error) { … }
func (cmd *cmdWrapper) Stop() { … }
func handleError(err error) error { … }
type ExitErrorWrapper …
var _ …
func (eew ExitErrorWrapper) ExitStatus() int { … }
type CodeExitError …
var _ …
func (e CodeExitError) Error() string { … }
func (e CodeExitError) String() string { … }
func (e CodeExitError) Exited() bool { … }
func (e CodeExitError) ExitStatus() int { … }