add terminal reporter module for displaying warnings, errors, and information

This commit is contained in:
Sina Atalay 2024-01-26 19:46:58 +01:00
parent ccbaee00c1
commit 123a604c25
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
from rich import print
def warning(text):
print(f"[bold yellow]⚠️:[/bold yellow] {text}")
def error(text):
print(f"[bold red]❌:[/bold red] {text}")
def information(text):
print(f"[bold cyan]:[/bold cyan] {text}")