mumoshu / variant2

Turn your bash scripts into a modern, single-executable CLI app today
MIT License
141 stars 11 forks source link

feat: Progress Indicators #18

Open osterman opened 4 years ago

osterman commented 4 years ago

While developing the a cli, verbose output is essential. However, for end-users it can often be overwhelming with TMI. It's hard to surface what they should care about and show progress. It would be nice to have a progress indicator like the following which shows the jobs that will be run and the progress.

Here's a nice example from np Example

mumoshu commented 4 years ago

@osterman Sounds nice. For my inspiration - how does np surfaces the original stdout/stderr of a failed command? A log file, or a specifically formatted text below those indicators, etc?

osterman commented 4 years ago

(haven't actually used np - found it after googling. my inspiration was that I've seen this UI more and more frequently on other cli tools but I couldn't remember which one. you'll also remember retry as a tool with some of this functionality)

Simple errors can be surfaced like this image

See https://laptrinhx.com/the-best-of-npm-install-g-3515219261/

osterman commented 4 years ago

Since output can be streamed to a file, it's maybe less critical to output it to the tty.