def warn(text): for line in text.splitlines(): secho(line, fg="white", bg="red", bold=True)
def warn(text): for line in text.splitlines(): secho(line, fg="white", bg="red", bold=True)
def note(text): for line in text.splitlines(): secho(line, fg="yellow", bold=True)
def echo_wrap(text: str, **kwargs: Any) -> None: """Prints a wrapped paragraph""" secho(wrap(text), err=True, **kwargs)
def echo_newline() -> None: """ Prints an informational newline (printed to stderr) """ secho("", err=True)
def echo_success(text: str, indent: str = "") -> None: logging.info(text) secho(wrap(f"{indent}✔ {text}"), fg=Colors.SUCCESS, err=True)
def echo_warning(text: str, indent: str = "") -> None: logging.warning(text) secho(wrap(f"{indent}⚠ {text}"), fg=Colors.WARNING, err=True)
def echo_error(text: str, indent: str = "") -> None: logging.error(text) secho(wrap(f"{indent}✘ {text}"), fg=Colors.ERROR, err=True)