Add CLI module files
This commit is contained in:
41
vibeguard/cli/theme.py
Normal file
41
vibeguard/cli/theme.py
Normal 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)
|
||||
Reference in New Issue
Block a user