Skip to main content

package_exec

Function package_exec 

Source
pub fn package_exec(
    call: &ToolCall,
    outcome: ToolOutcome,
    site: SieveSite<'_>,
    stamp: Option<ClockStamp>,
) -> Result<ToolOutcome, AxError>
Expand description

Sieves and packages one exec outcome.

A result with neither stdout nor stderr - a command handed to the background - is returned as it came: there is no text to cut and pretending there was would put an empty content where the handle is.

ยงErrors

Propagates a call whose arm does not parse, and whatever the pipeline reports about the tee or the cut.