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

Allow multi-level multi spinners #52

Open
jason-o-matic opened this issue Feb 4, 2024 · 0 comments
Open

Allow multi-level multi spinners #52

jason-o-matic opened this issue Feb 4, 2024 · 0 comments

Comments

@jason-o-matic
Copy link

jason-o-matic commented Feb 4, 2024

Describe the problem

I have 10 jobs that each have 2 sub-jobs, and I'd like to see a full tree with spinners and sub-spinners.

How would the new feature work?

I could register a multi spinner with a multi spinner, and it would render a nested tree.

spinners = TTY::Spinner::Multi.new("[:spinner] Making 10 Requests...")
sub_spinners_1 = TTY::Spinner::Multi.new("[:spinner] Making 2 Jobs...")
spinners.register(sub_spinners)
sub_spinners.register "[:spinner] Job 1"
# and so on with sub_spinners_2 and more jobs...

Drawbacks

None that I can think of.

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

No branches or pull requests

1 participant