Skip to main content

run_interactive

Function run_interactive 

Source
pub(crate) fn run_interactive(cmd: &mut Command) -> Result<(), Box<CmdError>>
Expand description

Runs a Command with inherited stdio so the child process can interact with the terminal directly (preserving ANSI colors, TTY detection, and interactivity).

Because stdio is inherited rather than captured, stderr and stdout in the returned CmdError::CmdFailure are always empty — the user already saw whatever the child printed.