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

Function print_box

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected