pub async fn contained_output(cmd: &mut Command) -> Result<Output>Expand description
Command::output() for a child whose whole process tree dies with the
returned future. Dropping it — a caller’s timeout elapsing, or a
cancelled tool call — kills the child and everything it started, where a
bare output() left them running. Stdin is closed: callers run
non-interactive work that must never wait on input.