runner

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, argv []string, stdout, stderr io.Writer) (int, error)

Run executes argv, redacts secrets from captured stdout/stderr to the supplied writers, and returns the child's exit code (128+sig on signal termination). SIGINT/SIGTERM are forwarded to the child.

func RunStreaming

func RunStreaming(ctx context.Context, argv []string, stdout, stderr io.Writer) (int, error)

RunStreaming is like Run but emits redacted output line-by-line as the child produces it. Tradeoff: a credential split across newlines would be missed (each line is redacted independently). Use for background commands where the agent reads via BashOutput while the child still runs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL