Expand description
Progress bars for the slow, countable phases — cloning many repositories
and the parallel GitHub enrichment passes — built on indicatif. The
styling mirrors Seqera’s RustQC (cyan braille spinner, a filled bar, and a
dim elapsed time) so the two tools feel consistent.
Bars draw to stderr. indicatif hides them automatically when stderr is not
a terminal, so piped and CI output stays clean; callers additionally pass
show (the verbose flag) to opt out entirely. When hidden, the returned bar
is a no-op, so inc/finish_and_clear are safe to call unconditionally.
Functions§
- bar
- A determinate progress bar over
totalitems, rendered as⣾ label [████░░░░] 12/57 3s. Returns a hidden (no-op) bar whenshowis false or there is nothing to count, so callers don’t need to branch.