Add CLI module files
Some checks failed
CI / test (push) Failing after 16s
CI / build (push) Has been skipped

This commit is contained in:
2026-02-03 06:55:52 +00:00
parent 35cfea5fa2
commit d8717d4951

41
vibeguard/cli/theme.py Normal file
View File

@@ -0,0 +1,41 @@
"""VibeGuard CLI theme."""
from rich.theme import Theme
THEME_DARK = Theme(
{
"critical": "bold red",
"error": "red",
"warning": "yellow",
"info": "cyan",
"pattern": "magenta",
"file": "green",
"code": "dim",
"success": "green",
"summary": "bold",
}
)
THEME_DEFAULT = Theme(
{
"critical": "bold red",
"error": "red",
"warning": "yellow",
"info": "blue",
"pattern": "magenta",
"file": "green",
"code": "dim",
"success": "green",
"summary": "bold",
}
)
class VibeGuardTheme:
"""Theme manager for VibeGuard output."""
@staticmethod
def get_theme(style: str = "default") -> Theme:
"""Get the theme based on style name."""
themes = {"default": THEME_DEFAULT, "dark": THEME_DARK}
return themes.get(style, THEME_DEFAULT)