spectre.console
spectre.console copied to clipboard
Error status for progress tasks
Is your feature request related to a problem? Please describe. I currently am trying to progress items but sometimes they will fail and it would be good to be able to reflect those failures in the progress widget.
Describe the solution you'd like
To be able to mark a ProgressTask as errored/failed. This should also update the styling of the ProgressBarColumn to reflect the error (red?), update PercentageColumn to something like Error and also clear the RemainingTimeColumn
Describe alternatives you've considered
I tried setting the ProgressTask.Value to -1 and handle it via custom implementations of ProgressBarColumn, PercentageColumn, RemainingTimeColumn and SpinnerColumn however they are all sealed. ProgressBar is also internal so it would all require copied those classes fully.
Please upvote :+1: this issue if you are interested in it.