Skip to main content

run_cmd

Function run_cmd 

Source
pub fn run_cmd(cmd: Command) -> CmdResult
Expand description

Like run but takes a pre-built Command (so the caller can set the working directory + environment) and captures the FULL stdout/stderr with no line cap: use when the output is parsed and may be long (e.g. a PEM key), unlike the streaming runners which keep only a bounded tail.