Documentation
¶
Overview ¶
Package sbxexec provides the provider-agnostic sbx subprocess runner shared by the crush and opencode sandbox kit packages. Only the subprocess boundary lives here; package-specific pipeline steps continue to live beside their package-local state types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSbxCommand ¶
RunSbxCommand looks up the sbx binary then runs the command under spec.Ctx, optionally piping Stdin. The context governs cancellation and deadlines: when it is cancelled, the spawned process is killed. Returns Left on lookup failure or non-zero exit.
exec.CommandContext is used instead of a bare &exec.Cmd{} so that spec.Ctx actually drives process lifetime. gosec rule G204 flags any subprocess launched with non-constant arguments; here spec.Args is built from validated CLI input inside this same process (never a raw shell string), so the directive is a false positive and is suppressed locally.