Skip to content

feat(progress): per-server progress bars and transfer log - #26

Merged
dialupdisaster merged 1 commit into
mainfrom
feat/progress-bars
Oct 8, 2026
Merged

dialupdisaster merged 1 commit into
mainfrom
feat/progress-bars

Conversation

@dialupdisaster

Copy link
Copy Markdown
Contributor

Description

Adds fancy progress bars (one per server) and a transfer log file.

  • Per-server bars via indicatif, sharing one MultiProgress (works with parallel backups). Enabled only when output is text, not --quiet, --fancy is true, and both stdout and stderr are terminals.
  • Log routing: while bars are drawn, log lines are printed above the bars (via a MultiProgress writer) instead of being overwritten.
  • --fancy <bool> flag (default true); --fancy=false (or a non-interactive shell / piped output / JSON / quiet) falls back to the existing line-based reporting.
  • Transfer log: a plain-text log is always written next to the archive (<timestamp>.log) listing the server, totals, and every transferred file, so details remain available while bars are shown.

The bars are driven by the real manifest: list() already provides the full file set, total bytes and count before downloading.

Type of change

  • New feature

Checklist

  • cargo fmt --all -- --check passes locally
  • cargo clippy --all-targets -- -D warnings passes locally
  • cargo test --all-targets passes locally (108 tests)
  • cargo build --release passes locally
  • Docs updated (README: --fancy, transfer log)
  • Commit messages follow Conventional Commits

- add indicatif-based progress bars, one per server, sharing a
  MultiProgress; enabled only for text output on an interactive
  terminal
- route log output above the bars so lines are not overwritten
- add a --fancy <bool> flag (default true) to disable bars
- always write a plain-text transfer log next to each archive
  (<timestamp>.log) with the server, totals and every transferred file
  so details remain available while bars are shown
@dialupdisaster
dialupdisaster merged commit a10dfb0 into main Oct 8, 2026
4 checks passed
@dialupdisaster
dialupdisaster deleted the feat/progress-bars branch October 8, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant