-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
We have spinner columns set up like this:
finished_text = "-"
if sys.__stdout__.isatty():
finished_text = "[green]✓"
return rich.progress.Progress(
rich.progress.SpinnerColumn(finished_text=finished_text),
rich.progress.TextColumn("{task.description}", table_column=rich.table.Column(ratio=1)),
rich.progress.TextColumn("{task.fields[command]}", table_column=rich.table.Column(ratio=2)),
)
If the task fails I would like to update the spinner column to display [red]x
Is this possible?