Wire progress bars and retry logic into CLI archive and restore commands
Integrate the progress reporting module and retry logic into the two main
CLI workflows. The archive command now creates a progress bar before the
packaging pipeline and passes it to create_archive_with_progress via a
ProgressFn callback that maps ArchiveStage values to status messages and
fractional bar position. A second progress bar tracks the upload phase.
Both bars are finished and cleared on completion. The restore command
similarly uses a download progress bar keyed to the stored project size
and an extraction progress bar sized to the received encrypted blob.
Connection attempts now use with_retry wrapping PwrClient::connect with 3
retries and a 1-second base delay, retrying only on transient network
errors as classified by is_retryable_error. This provides resilience
against momentary server unavailability without masking fatal errors
like authentication failures.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.