Skip to main content

exec_capture_in_dir

Function exec_capture_in_dir 

Source
pub fn exec_capture_in_dir(
    dir: &Path,
    program: &str,
    args: &[String],
) -> (ExecStatus, Vec<u8>)
Expand description

Like exec_in_dir, but CAPTURE stdout+stderr (stdout then stderr) instead of inheriting the parent’s stdio. Used by run_in_dirs_parallel so concurrent worktrees don’t interleave their output — each block is printed whole, in worktree order, after the fan-out completes.