Skip to content

Commit

Permalink
Mild improvements to look of verbose log
Browse files Browse the repository at this point in the history
However, still a long way to go
  • Loading branch information
Byron committed Jul 10, 2020
1 parent 0cc1bf2 commit 5fff552
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/plumbing/lean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ fn prepare(verbose: bool, name: &str) -> (prodash::line::JoinHandle, progress::D

let progress = prodash::Tree::new();
let sub_progress = progress.add_child(name);
let handle = prodash::line::render(stderr(), progress, prodash::line::Options::default());
let handle = prodash::line::render(
stderr(),
progress,
prodash::line::Options {
level_filter: Some(std::ops::RangeInclusive::new(2, 2)),
..prodash::line::Options::default()
},
);
(
handle,
progress::DoOrDiscard::from(if verbose { Some(sub_progress) } else { None }),
Expand Down
6 changes: 3 additions & 3 deletions tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* [x] lean + small
* [x] `--version|-v` option
* **progress**
* [ ] one-line progress indicator, maybe implemented in prodash (similar to what `git` does when receiving)
* [ ] in Termion
* [ ] in crossterm
* [x] one-line progress indicator, maybe implemented in prodash (similar to what `git` does when receiving)
* [x] in Termion
* [x] in crossterm
* **initial release**
* [ ] use 'main' instead of 'master' by default during repo-init
* **pack**
Expand Down

0 comments on commit 5fff552

Please sign in to comment.