-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Feature: loading indicator #33
Comments
Thanks! A simple spinner / loading indicator will be added in a future version |
@terkelg is it possible to have a loading bar that can accept user input (like enter) to be able to cancel the operation in progress? An extended feature should be the ability for the user, while waiting, to choose to cancel and continue and/or cancel and stop. Does that make sense? My use case: I'm prompting the user many informations, and then I should wait for continuous integration to pass, with a nice loading indicator. But while loading, the use can chose to cancel and continue. |
I'll take that into consideration when doing the sinner/progress bar feature. I think it make sense to enable the user to cancel |
You can use this one: https://github.com/sindresorhus/ora |
This is a nice to have. Closing for now. |
@terkelg it'd be awesome to have something built into Prompts itself, ora certainly looks nice enough to be used, but it doesn't seem to fit well with the goals behind Prompts, ora is about twice the size of Prompts itself while using like 10x the number of dependencies, these are important metrics for CLI tools, it'd be nice to have something more aligned with Prompts. |
I just made a tiny spinner that's more in line with Prompts, if anybody else needs something like this: https://github.com/fabiospampinato/tiny-spinner |
Great library, works really well and has an easy to use API.
One thing I'd like to see / make use of is a loading spinner or maybe a progress bar?
I would like to for example show progress of an action, i.e downloading a file.
Would make this even more epic!
The text was updated successfully, but these errors were encountered: