Skip to main content

capture_within

Function capture_within 

Source
pub fn capture_within(
    settings: &Settings,
    cmd: &mut Command,
) -> Option<(Ran, String)>
Expand description

Run to completion under the greengate.timeout deadline with stdout and stderr CAPTURED into a string the caller can parse — what the audit checks need: their verdict lives in the tool’s output, not its exit code alone. Arrival-ordered merge of both streams, like status_streamed’s blocks. None when the child cannot be spawned.