jbcarpanelli / spinnies

Node.js module to create and manage multiple spinners in command-line interface programs
MIT License
147 stars 32 forks source link

Adds `continuous` option. #16

Closed coreyleelarson closed 3 years ago

coreyleelarson commented 4 years ago

First off, thank you for building spinnies! I've been looking for something exactly like this for a while.

Currently, once all spinners have either succeeded or failed, the spinners object is cleared and they can no longer be updated. I've added a continuous option to allow for the spinners to run and be updated indefinitely until the user manually terminates the process, as I am building a development tool and my use-case calls for it.

jbcarpanelli commented 4 years ago

Hello @coreyleelarson! I like the idea of having an option for not removing the spinners, but still trying to come up with some use cases. Could you please explain yours? :slightly_smiling_face:

coreyleelarson commented 4 years ago

I am building an automated webpack build tool and, additionally, an internal plugin similar to friendly-errors-webpack-plugin. It will display a spinner for each config file being processed. In watch mode, it needs to be able to update the current spinners, even after all have been completed, as the watcher runs indefinitely until process is terminated by the user.

I have actually halted work on this for now, as we have higher priority items to attend to, so I don't really have an example to show. When I return to it, this will be something I'll need.