Versions in this module Expand all Collapse all v0 v0.13.9 Mar 26, 2023 v0.13.8 Mar 26, 2023 Changes in this version + var DefaultCmdOpts = CmdOpts + var ErrWaitPIDTimeout = fmt.Errorf("Timed out waiting for PID to complete") + var Unredacted = Redact(nil) + func Redact(items []string) func(text string) string + func RunCommand(name string, opts CmdOpts, arg ...string) (string, error) + func RunCommandExt(cmd *exec.Cmd, opts CmdOpts) (string, error) + func WaitPID(pid int, opts ...WaitPIDOpts) error + type CmdError struct + Args string + Cause error + Stderr string + func (ce *CmdError) Error() string + func (ce *CmdError) String() string + type CmdOpts struct + Redactor func(text string) string + Timeout time.Duration + TimeoutBehavior TimeoutBehavior + type TimeoutBehavior struct + ShouldWait bool + Signal syscall.Signal + type WaitPIDOpts struct + PollInterval time.Duration + Timeout time.Duration