pub fn capture_stdout_within(
settings: &Settings,
cmd: &mut Command,
) -> Result<CapturedOutput>Expand description
As capture_within, but stdout and stderr are kept APART: a caller that
parses stdout (npm’s JSON) must not see npm’s warn lines, and quotes
stderr only in a reason. The child’s stdin is whatever cmd set (inherited
by default); nothing is written to it from here. Err when the child
cannot be spawned (ErrorKind::NotFound when the program is missing).