You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
377 B

from rich.console import Console
from rich.markdown import Markdown
class MessagePrinter:
@staticmethod
def print(title: str, message: str):
console = Console()
full_message = f'# {title}\n{message}'
console.print(Markdown(full_message))
@staticmethod
def bye():
console = Console()
console.print('[green]bye[/]')