mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-07-18 10:51:48 +00:00
14 lines
358 B
Python
14 lines
358 B
Python
"""module for console output handling in obsws_cli."""
|
|
|
|
from rich.console import Console
|
|
|
|
from .context import Context
|
|
|
|
out = Console()
|
|
err = Console(stderr=True, style='bold red')
|
|
|
|
|
|
def highlight(ctx: Context, text: str) -> str:
|
|
"""Highlight text using the current context's style."""
|
|
return f'[{ctx.style.highlight}]{text}[/{ctx.style.highlight}]'
|