Skip to main content

print_execution_output_json

Function print_execution_output_json 

Source
pub fn print_execution_output_json(output: &ExecutionOutput) -> Result<()>
Expand description

Prints stdout/stderr from an SSH command execution.

Format:

--- stdout ---
<stdout>
--- stderr ---
<stderr>
--- exit code: <code> (<duration_ms>ms) ---

Streams under one stdout lock with writeln! (G-MAC-02) — no cloned