pub fn synced_progress(
spinner: &str,
active_names: &str,
done: usize,
total: usize,
added: usize,
updated: usize,
stale: usize,
) -> StringExpand description
In-progress sync line for the footer. Format:
⠋ Syncing AWS, Hetzner · 1/3 (+12 ~3 -1).
Active provider names lead so the user immediately sees which provider
is currently in flight (especially relevant when one provider is slow).
done/total follows as a counter. The leading character is a braille
spinner frame rotated on every tick. The (+a ~u -s) suffix is omitted
when all counts are zero.
Callers MUST only invoke this when active_names is non-empty (i.e.
at least one provider is still in flight). The only call site is
main::set_sync_summary, which enters this branch via still_syncing,
itself gated on !providers.syncing.is_empty() — so active_names
(built from syncing.keys()) is guaranteed non-empty.