Skip to main content

run_script

Function run_script 

Source
pub fn run_script(request: &ScriptRequest) -> Result<ScriptOutput, ScriptError>
Expand description

Spawn a subprocess with timeout, optional stdin, and stderr tail.

Workflow hooks and extension preexec share this helper so workflow/ does not grow a second Command::new stack (ADR-0023).

§Errors

Returns ScriptError when the process cannot be spawned, times out, exceeds the stdout cap, or wait/IO fails.