Add progress callback support to client archive and restore methods
Extend archive_project and restore_project with optional progress callbacks
that report bytes transferred against total size. The existing methods
become thin wrappers calling the new archive_project_with_progress and
restore_project_with_progress variants with None for backward
compatibility. During archive, the callback fires after each 1 MiB chunk
is written to the TCP stream, reporting cumulative bytes sent. During
restore, the callback fires after each received chunk is appended to the
buffer, reporting cumulative bytes received. The callback signature is
fn(u64, u64) where the first argument is current progress and the second
is the total, suitable for driving indicatif progress bars or TUI
progress displays without coupling the client module to any specific UI
library.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.