Files
2026-07-29 17:36:22 +02:00

28 lines
727 B
Python

class ConsoleUI:
RESET = "\033[0m"
BOLD = "\033[1m"
BLUE = "\033[38;5;39m"
GREEN = "\033[38;5;42m"
YELLOW = "\033[38;5;220m"
RED = "\033[38;5;196m"
@classmethod
def headline(cls, text: str) -> None:
print(f"{cls.BOLD}{cls.BLUE}{text}{cls.RESET}")
@classmethod
def info(cls, text: str) -> None:
print(f"{cls.BLUE}[INFO]{cls.RESET} {text}")
@classmethod
def success(cls, text: str) -> None:
print(f"{cls.GREEN}[OK]{cls.RESET} {text}")
@classmethod
def warn(cls, text: str) -> None:
print(f"{cls.YELLOW}[WARN]{cls.RESET} {text}")
@classmethod
def error(cls, text: str) -> None:
print(f"{cls.RED}[ERR]{cls.RESET} {text}")