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

Feature: loading indicator #33

Closed
abacaj opened this issue Mar 1, 2018 · 7 comments
Closed

Feature: loading indicator #33

abacaj opened this issue Mar 1, 2018 · 7 comments
Labels
enhancement New feature or request

Comments

@abacaj
Copy link

abacaj commented Mar 1, 2018

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!

@terkelg
Copy link
Owner

terkelg commented Mar 2, 2018

Thanks! A simple spinner / loading indicator will be added in a future version

@terkelg terkelg added the enhancement New feature or request label Mar 2, 2018
@terkelg terkelg added this to the v0.1.4 milestone Mar 2, 2018
@terkelg terkelg closed this as completed Mar 2, 2018
@terkelg terkelg reopened this Mar 2, 2018
@terkelg terkelg modified the milestones: v0.1.7, 1. Mar 11, 2018
@yvele
Copy link

yvele commented Mar 14, 2018

@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.

@terkelg
Copy link
Owner

terkelg commented Mar 15, 2018

I'll take that into consideration when doing the sinner/progress bar feature. I think it make sense to enable the user to cancel

@armand1m
Copy link
Contributor

You can use this one: https://github.com/sindresorhus/ora

@terkelg terkelg removed this from the v0.1.8 milestone Aug 14, 2018
@terkelg
Copy link
Owner

terkelg commented Aug 14, 2018

This is a nice to have. Closing for now.

@terkelg terkelg closed this as completed Aug 14, 2018
@fabiospampinato
Copy link

fabiospampinato commented Feb 7, 2022

@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.

@fabiospampinato
Copy link

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

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

No branches or pull requests

5 participants