by setting values in the default style to 'none' we avoid the rich markup errors in console.highlight

add comment to util.check_mark and test only NO_COLOR

patch bump
This commit is contained in:
2025-06-22 10:14:46 +01:00
parent 55e60ff977
commit 7bec573ef9
9 changed files with 19 additions and 19 deletions

View File

@@ -9,6 +9,4 @@ err = Console(stderr=True, style='bold red')
def highlight(ctx: typer.Context, text: str) -> str:
"""Highlight text using the current context's style."""
if ctx.obj['style'].name == 'no_colour':
return text
return f'[{ctx.obj["style"].highlight}]{text}[/{ctx.obj["style"].highlight}]'