|
|
@ -4,6 +4,7 @@ from rich.markdown import Markdown
|
|
|
|
from rich.padding import Padding
|
|
|
|
from rich.padding import Padding
|
|
|
|
from rich.panel import Panel
|
|
|
|
from rich.panel import Panel
|
|
|
|
from rich.text import Text
|
|
|
|
from rich.text import Text
|
|
|
|
|
|
|
|
from rich.columns import Columns
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
|
|
console = Console()
|
|
|
|
console = Console()
|
|
|
@ -23,6 +24,13 @@ def print_step(text):
|
|
|
|
console.print(panel)
|
|
|
|
console.print(panel)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def print_table(items):
|
|
|
|
|
|
|
|
"""Prints items in a table."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.print(Columns([Panel(f"[yellow]{item}", expand=True) for item in items]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def print_substep(text, style=""):
|
|
|
|
def print_substep(text, style=""):
|
|
|
|
"""Prints a rich info message without the panelling."""
|
|
|
|
"""Prints a rich info message without the panelling."""
|
|
|
|
console.print(text, style=style)
|
|
|
|
console.print(text, style=style)
|
|
|
|