26 lines
1.6 KiB
Python
26 lines
1.6 KiB
Python
from rich.console import Console
|
|
from rich.text import Text
|
|
import yaml
|
|
def print_banner() -> None:
|
|
with open("config/config.yml","r") as config:
|
|
config = yaml.load(config, Loader=yaml.FullLoader)
|
|
version = config.get("version", "unknown")
|
|
pretor_banner = """
|
|
██████╗ ██████╗ ███████╗████████╗ ██████╗ ██████╗
|
|
██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔═══██╗██╔══██╗
|
|
██████╔╝██████╔╝█████╗ ██║ ██║ ██║██████╔╝
|
|
██╔═══╝ ██╔══██╗██╔══╝ ██║ ██║ ██║██╔══██╗
|
|
██║ ██║ ██║███████╗ ██║ ╚██████╔╝██║ ██║
|
|
╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
|
|
"""
|
|
console = Console()
|
|
banner_colored = Text(pretor_banner, style="gold3 bold")
|
|
console.print(banner_colored)
|
|
console.print("=" * 40, style="dim") # dim=灰色,低调
|
|
console.print("🚀 Multi-Agent Orchestration Platform", style="blue")
|
|
console.print(f"📦 Version: {version}", style="green")
|
|
console.print(f"👤 Author: zhaoxi826", style="yellow")
|
|
console.print(f"📜 License: Apache 2.0", style="magenta")
|
|
console.print(f"🐙 github: https://github.com/zhaoxi826/pretor", style="yellow")
|
|
console.print("=" * 40, style="dim")
|