Skip to main content

run_with_io

Function run_with_io 

Source
pub async fn run_with_io<I, T, In, Out, ErrW>(
    args: I,
    _stdin: In,
    stdout: Out,
    stderr: ErrW,
    stdout_is_terminal: bool,
) -> ExitCode
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone, In: Read, Out: Write, ErrW: Write,
Expand description

Injectable IO entrypoint for tests (run(args, stdin, stdout, stderr, stdout_is_terminal)).

stdin is reserved for future payload flows and is unused by current ops. Pass stdout_is_terminal = true to keep human markdown default in unit tests; the binary path passes the real IsTerminal of process stdout.