initial commit

This commit is contained in:
2025-01-12 19:54:41 -06:00
commit f637529a8d
52 changed files with 2190 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from .colors import *
from .status_indicators import *

View File

@@ -0,0 +1,16 @@
# ANSI color codes in bash format
def template(color_code: int) -> str:
return fr"\[\033[{color_code}m\]"
RESET = template(0)
BOLD = template(1)
RED = template(31)
GREEN = template(32)
YELLOW = template(33)
BLUE = template(34)
MAGENTA = template(35)
CYAN = template(36)
WHITE = template(37)
DEFAULT = template(39)

View File

@@ -0,0 +1,29 @@
from utils import colors
from typing import Dict
status_indicators: Dict[str, Dict[str, str]] = {
'working tree clean': {
'color': colors.GREEN,
'icon': '',
},
'not staged': {
'color': colors.YELLOW,
'icon': ' *',
},
'to be committed': {
'color': colors.YELLOW,
'icon': ' +',
},
'is behind': {
'color': colors.YELLOW,
'icon': '',
},
'is ahead': {
'color': colors.YELLOW,
'icon': '',
},
'fix conflicts': {
'color': colors.RED,
'icon': '',
},
}