MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / print_box

Function print_box

scripts/setup_discord.py:23–31  ·  view source on GitHub ↗
(lines: list[str], title: str = "", width: int = 80 - 4)

Source from the content-addressed store, hash-verified

21
22
23def print_box(lines: list[str], title: str = "", width: int = 80 - 4):
24 print("┌" + "─" * width + "┐")
25 if title:
26 print(f"│ {title:<{width-4}} │")
27 print("├" + "─" * width + "┤")
28 for line in lines:
29 for subline in line.split("\n"):
30 print(f"│ {subline:<{width-4}} │")
31 print("└" + "─" * width + "┘")
32
33
34def print_success(text: str):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected