parent
d90b280d41
commit
1bd5fd5145
@ -0,0 +1,12 @@
|
|||||||
|
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))
|
||||||
|
|
Loading…
Reference in new issue