Skip to main content

print_transfer_json

Function print_transfer_json 

Source
pub fn print_transfer_json(
    direction: &str,
    target: &ExecTarget,
    local: &str,
    remote: &str,
    result: &TransferResult,
) -> Result<()>
Expand description

Prints an SCP transfer result as JSON (GAP-SSH-IO-007 / SCP-021 / IO-009).

ยงErrors

Serialization or stdout I/O (including BrokenPipe).

Takes the resolved json_wire::ExecTarget rather than a bare name so the provenance travels with the host instead of as an eighth parameter: this function already sits at the clippy::too_many_arguments ceiling that gaps_v062_component_budget refuses to spend another allow on.