Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Progress Indicators #18

Open
osterman opened this issue Apr 22, 2020 · 3 comments
Open

feat: Progress Indicators #18

osterman opened this issue Apr 22, 2020 · 3 comments

Comments

@osterman
Copy link

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
Copy link
Owner

mumoshu commented Apr 22, 2020

@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
Copy link
Author

osterman commented Apr 22, 2020

(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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants