jetstack / paranoia

Inspect certificate authorities in container images
Apache License 2.0
226 stars 9 forks source link

Add progress indicators to long running tasks #31

Open AlexWootton opened 2 years ago

AlexWootton commented 2 years ago

We have a few areas in our application where users can be waiting seconds with no output to stdout even though the application is running.

It would be good to give users some indication of life and progress being made to minimise frustration and confusion. A simple message printed to stdout when starting a potentially long running task could be enough. An animated progress wheel would be a nice touch but potentially more effort than it's worth at this stage.

ChaosInTheCRD commented 1 year ago

I might be wrong... and I know it would be a decent piece of work... but I believe that bubbletea can do this?

ChaosInTheCRD commented 11 months ago

https://github.com/charmbracelet/bubbles/blob/master/progress/progress.go

yeah, thought so. Could be good to consider trying to switch out cobra(?) with bubbletea.