Versions in this module Expand all Collapse all v1 v1.27.1 Mar 19, 2026 v1.27.0 Mar 19, 2026 Changes in this version + var ErrCommandFailed = fmt.Errorf("command exited with non-zero status") + type Client struct + func NewClient() *Client + func (c *Client) ExecStreamedCommand(ctx context.Context, opts *ExecStreamedOpts, name string, args ...string) error + func (c *Client) LookPath(file string) (string, error) + func (c *Client) ReadStdout(ctx context.Context, name string, args ...string) (string, error) + func (c *Client) Run(ctx context.Context, name string, args []string, opts *Options) *Result + func (c *Client) RunInRepository(ctx context.Context, caproniConfig *config.CaproniConfig, ...) error + type CommandRunner interface + ExecStreamedCommand func(ctx context.Context, opts *ExecStreamedOpts, name string, args ...string) error + LookPath func(file string) (string, error) + ReadStdout func(ctx context.Context, name string, args ...string) (string, error) + Run func(ctx context.Context, name string, args []string, opts *Options) *Result + RunInRepository func(ctx context.Context, caproniConfig *config.CaproniConfig, ...) error + type ExecStreamedOpts struct + ProcessDescriptiveName string + UseScrollingArea bool + WorkingDir string + type Options struct + DisableStreaming bool + LogLevel slog.Level + Logger *slog.Logger + StderrLogLevel slog.Level + Stdin io.Reader + type Result struct + Duration time.Duration + Error error + ExitCode int + Stderr []string + Stdout []string + func (r *Result) CombinedOutput() string