Versions in this module Expand all Collapse all v0 v0.32.1 Feb 20, 2026 v0.32.0 Feb 20, 2026 Changes in this version + func RunSh(ctx context.Context, dir, cmd string) error v0.31.1 Feb 15, 2026 Changes in this version + type Executor interface + Run func(ctx context.Context, cmd string, args ...string) ([]byte, error) + RunDir func(ctx context.Context, dir, cmd string, args ...string) ([]byte, error) + RunDirStream func(ctx context.Context, dir string, stdout, stderr io.Writer, cmd string, ...) error + RunStream func(ctx context.Context, stdout, stderr io.Writer, cmd string, args ...string) error + type RealExecutor struct + func (e *RealExecutor) Run(ctx context.Context, cmd string, args ...string) ([]byte, error) + func (e *RealExecutor) RunDir(ctx context.Context, dir, cmd string, args ...string) ([]byte, error) + func (e *RealExecutor) RunDirStream(ctx context.Context, dir string, stdout, stderr io.Writer, cmd string, ...) error + func (e *RealExecutor) RunStream(ctx context.Context, stdout, stderr io.Writer, cmd string, args ...string) error + type RecordedCommand struct + Args []string + Cmd string + Dir string + type RecordingExecutor struct + Commands []RecordedCommand + Errors map[string]error + Outputs map[string][]byte + func (e *RecordingExecutor) Reset() + func (e *RecordingExecutor) Run(ctx context.Context, cmd string, args ...string) ([]byte, error) + func (e *RecordingExecutor) RunDir(ctx context.Context, dir, cmd string, args ...string) ([]byte, error) + func (e *RecordingExecutor) RunDirStream(ctx context.Context, dir string, stdout, stderr io.Writer, cmd string, ...) error + func (e *RecordingExecutor) RunStream(ctx context.Context, stdout, stderr io.Writer, cmd string, args ...string) error