signale icon indicating copy to clipboard operation
signale copied to clipboard

Progress indicator

Open mulhoon opened this issue 6 years ago • 1 comments

Awesome project.

It would be nice to display a progress bar that is dynamically updated. Useful for downloading content. Similar to node-progress

Something like...

signale.progress('Downloading content', {current:0, total:100})

// and then call tick to increase the progress
signale.tick()

displays...

// progress      Downloading content [=====             ] 29% 39/bps 3.7s

I have tried using node progress along side signale, but it requires an interrupt() function to be called if you want to log other things during progress. This could be built in, so that if a progress is running, then the new signale.[command] appears above the bar.

I think it could be kept simple and doesn't need to be as advanced as node-progress.

What do you think? Nic

mulhoon avatar Jun 04 '18 13:06 mulhoon

Up please, it's a very good request 🙏

Aperrix avatar Nov 06 '21 08:11 Aperrix