Feat : adding work that was done locally

This commit is contained in:
martin legrand
2025-02-19 19:07:24 +01:00
parent b64c75afeb
commit 62cc76764e
17 changed files with 1488 additions and 21 deletions
+20
View File
@@ -0,0 +1,20 @@
from colorama import Fore
def pretty_print(text, color = "info"):
"""
print text with color
"""
color_map = {
"success": Fore.GREEN,
"failure": Fore.RED,
"status": Fore.LIGHTGREEN_EX,
"code": Fore.LIGHTBLUE_EX,
"warning": Fore.YELLOW,
"output": Fore.LIGHTCYAN_EX,
}
if color not in color_map:
print(text)
pretty_print("Invalid color in pretty_print", "warning")
return
print(color_map[color], text, Fore.RESET)