mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2026-04-18 15:03:44 +00:00
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:
@@ -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}]'
|
||||
|
||||
Reference in New Issue
Block a user