Skip to main content

log_command

Function log_command 

Source
pub async fn log_command(
    runner: &dyn CommandRunner,
    cmd: &Cmd,
    p: &Printer,
) -> Result<(), String>
Expand description

Prints Running : <dir> <cmd> (yellow Running : , the directory, a reset, a space and the command), then runs cmd with its stdout and stderr each through a ReprintableStream onto the printer’s writer (both go to the command’s stdout). A failed start is its error text; a non-zero exit is exit status <n>.