rpm-ostree/rust
Colin Walters 1dee43319c Use indicatif for progress
This turned out to be messier than I thought, because of two primary
factors; the biggest mess here of course is the indirection
through the DBus API.

The other problem is that previously we passed the string to render
each time, and with current indicatif that'd trigger a rerender.
Since (usually) don't change the "prefix string", rework the API.

Change the "percent/n_items" bits to use autocleanups as well, and
to take the prefix string as an initial argument.

Since the state expands to multiple components, also change the
API to use the `0-initialized` pattern rather than trying to
return an aggregate.

We also gain a "sub message" which we use to display e.g.
package names as we're doing checkouts.  Note this ends up
at the end, since otherwise everything else jumps around.

Closes: #1661
Approved by: rfairley
2018-11-09 13:59:43 +00:00
..
src Use indicatif for progress 2018-11-09 13:59:43 +00:00
.gitignore build-sys: Add some gitignore for Rust bits 2018-06-11 13:08:41 +00:00
cargo-vendor-config Add support for YAML treefiles 2018-06-05 13:08:33 +00:00
Cargo.toml Use indicatif for progress 2018-11-09 13:59:43 +00:00
cbindgen.toml Move varsubst code into Rust, use it in treefile parsing 2018-11-02 20:36:28 +00:00