Documentation
¶
Overview ¶
Package process runs bounded external tools without shell interpretation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrOutputLimit = errors.New("external tool output exceeded capture limit")
ErrOutputLimit means the captured output is incomplete and must not be parsed as a successful tool response.
Functions ¶
This section is empty.
Types ¶
type Output ¶
Output is the trimmed stdout and stderr of a finished tool.
func Capture ¶
func Capture(ctx context.Context, timeout time.Duration, executable string, args ...string) (Output, error)
Capture runs executable with args under timeout. The child gets its own process group so cancellation kills forked helpers too; output is capped at 64 KiB stdout and 16 KiB stderr.