Versions in this module Expand all Collapse all v1 v1.16.2 Sep 9, 2025 v1.15.12 Sep 9, 2025 Changes in this version + type OutputWriter struct + func NewOutputWriter(typ contractsprocess.OutputType, handler contractsprocess.OnOutputFunc) *OutputWriter + func (w *OutputWriter) Write(p []byte) (n int, err error) + type Process struct + func New() *Process + func (r *Process) Env(vars map[string]string) contractsprocess.Process + func (r *Process) Input(in io.Reader) contractsprocess.Process + func (r *Process) OnOutput(handler contractsprocess.OnOutputFunc) contractsprocess.Process + func (r *Process) Path(path string) contractsprocess.Process + func (r *Process) Quietly() contractsprocess.Process + func (r *Process) Run(name string, args ...string) (contractsprocess.Result, error) + func (r *Process) Start(name string, args ...string) (contractsprocess.Running, error) + func (r *Process) TTY() contractsprocess.Process + func (r *Process) Timeout(timeout time.Duration) contractsprocess.Process + func (r *Process) WithContext(ctx context.Context) contractsprocess.Process + type Result struct + func NewResult(exitCode int, command, stdout, stderr string) *Result + func (r *Result) Command() string + func (r *Result) ErrorOutput() string + func (r *Result) ExitCode() int + func (r *Result) Failed() bool + func (r *Result) Output() string + func (r *Result) SeeInErrorOutput(needle string) bool + func (r *Result) SeeInOutput(needle string) bool + func (r *Result) Successful() bool + type Running struct + func NewRunning(cmd *exec.Cmd, stdout, stderr *bytes.Buffer) *Running + func (r *Running) Command() string + func (r *Running) ErrorOutput() string + func (r *Running) Kill() error + func (r *Running) LatestErrorOutput() string + func (r *Running) LatestOutput() string + func (r *Running) Output() string + func (r *Running) PID() int + func (r *Running) Running() bool + func (r *Running) Signal(sig os.Signal) error + func (r *Running) Stop(timeout time.Duration, sig ...os.Signal) error + func (r *Running) Wait() contractsprocess.Result