Note
indexable-inc/progress-style is a read-only mirror, generated from packages/progress-style in indexable-inc/index at commit 7b4daa30a7b7. The monorepo is the source of truth: please open issues and pull requests there. This mirror is regenerated automatically; anything pushed directly here will be overwritten.
The shared indicatif progress-bar and spinner
styling for ix command-line tools: one owner for the glyphs, colors, and
templates, so search, dag-runner, and future commands render the same
shape instead of each hand-rolling a template.
The bar fills one-eighth of a cell at a time with block glyphs over a visible
░ track (no segmented =>- arrow), fronted by a braille spinner:
⠹ indexing 42/128 ███████████▎░░░░░░░░░░░░░░░░░░░ 00:00:07
Pick a style, then set the per-run label and status on the bar:
use indicatif::ProgressBar;
let bar = ProgressBar::new(128).with_style(progress_style::bar("cyan"));
bar.set_prefix("indexing");
for item in work {
process(item);
bar.inc(1);
}
bar.finish();bar(accent) is a determinate bar whose fill color marks the phase;
spinner() is the matching indeterminate spinner for work with no known
total (label via set_prefix, status line via set_message).
- doc/progress-style/overview.md — from-source documentation.
progress-style is not on crates.io; add it as a git dependency:
[dependencies]
progress-style = { git = "https://github.com/indexable-inc/progress-style" }Changes: CHANGELOG.md, derived from the monorepo history of the package.