Versions in this module Expand all Collapse all v0 v0.0.2 Jun 2, 2024 Changes in this version type Spec + func (c Spec) WithCmd(app string, args ...string) Spec v0.0.1 Jun 1, 2024 Changes in this version + func DefaultRetryFilter(err error, isAttemptTimeout bool) bool + func TimeoutRetryFilter(err error, isAttemptTimeout bool) bool + type Result struct + Attempts int + Combined string + Err error + ExitCode int + StdErr string + StdOut string + type Spec struct + App string + Args []string + AttemptTimeout time.Duration + CollectAllOutput bool + ResetAttemptTimeoutOnOutput bool + Retries int + RetryFilter func(err error, isAttemptTimeout bool) bool + StdErr io.Writer + StdIn io.Reader + StdOut io.Writer + TotalTimeout time.Duration + Verbose bool + WorkingDirectory string + func New(appAndArgs ...string) Spec + func NewA(app string, args ...string) Spec + func (c Spec) Run(ctx context.Context) Result + func (c Spec) WithApp(app string) Spec + func (c Spec) WithArgs(newArgs ...string) Spec + func (c Spec) WithAttemptTimeout(timeout time.Duration) Spec + func (c Spec) WithCollectAllOutput(collect bool) Spec + func (c Spec) WithExtraArgs(extraArgs ...string) Spec + func (c Spec) WithResetAttemptTimeoutOnOutput(enabled bool) Spec + func (c Spec) WithRetries(n int) Spec + func (c Spec) WithRetryFilter(filter func(err error, isAttemptTimeout bool) bool) Spec + func (c Spec) WithStdErr(writer io.Writer) Spec + func (c Spec) WithStdErrForwarded() Spec + func (c Spec) WithStdIn(reader io.Reader) Spec + func (c Spec) WithStdInForwarded() Spec + func (c Spec) WithStdOut(writer io.Writer) Spec + func (c Spec) WithStdOutErrForwarded() Spec + func (c Spec) WithStdOutForwarded() Spec + func (c Spec) WithTotalTimeout(timeout time.Duration) Spec + func (c Spec) WithVerbose(verbose bool) Spec + func (c Spec) WithWorkingDirectory(wd string) Spec