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] Added concurrent info for single progress bars #148

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gregormaclaine
Copy link

@gregormaclaine gregormaclaine commented Aug 2, 2023

This feature adds new methods to the SingleBar where the user can show additional information about the process on the single line immediately below the progress bar.

Reasoning

I wanted this feature in my own project, because I had a process that went through multiple files and ran a long process and I wanted to see exactly which file was currently being processed. This allows that by giving that information below.

Example


Note: This is the output from the new example file

Note on use in Multibars

As this feature adds text immediately below the progress bar, it does not really fit with the functionality Multibar, as by definition it is doing multiple different processes at the same time. Therefore I updated the options such that this concurrent info feature cannot be used in a Multibar i.e. the functions will do nothing.

Change Log

  • Added base concurrent info feature
    • Additional modifications to account for clearOnComplete option
  • Added example-concurrent-info.js example file
  • Added restrictions to prevent this feature being used in a Multibar
  • Updated README doc with information about how to use the new feature

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

Successfully merging this pull request may close these issues.

None yet

1 participant