Skip to main content

print_scp_batch

Function print_scp_batch 

Source
pub fn print_scp_batch(
    direction: &str,
    results: &[HostScpResult],
    max_concurrency: usize,
    json: bool,
    source: TargetSource,
) -> Result<()>
Expand description

Prints multi-host SCP batch results.

§Errors

Serialization or stdout I/O. source is a parameter rather than a constant because this envelope serves two different designations: the fleet paths (--all / --hosts) are selector, while single-host multi-file (G-PAR-37 / G-PAR-47) reuses the same shape for a host the caller typed. Hardcoding selector here would make the second case lie about how its target was chosen — the precise class of silence this field exists to end.