pub fn run_command_streaming(
program: &str,
args: &[String],
cwd: Option<&Path>,
envs: &[(&str, &str)],
inherit_tty: bool,
) -> Result<CommandRunMetrics>Expand description
Executes an external command with live streaming output (or inherited TTY) and records wall-clock elapsed timing.
§Arguments
&str- Executable binary name.&[String]- Command arguments.Option<&Path>- Optional working directory override.&[(&str, &str)]- Additional environment variable pairs.bool- Whentrue, inherits stdin/stdout/stderr directly for live output and interactive TTY apps.
§Returns
io::Result<CommandRunMetrics>- Execution metrics or non-zero exit error.