MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _header

Function _header

core/peer_shell.py:50–54  ·  view source on GitHub ↗
(label: str, width: int)

Source from the content-addressed store, hash-verified

48
49
50def _header(label: str, width: int) -> str:
51 label = f" {label} "
52 pad_l = (width - len(label)) // 2
53 pad_r = width - pad_l - len(label)
54 return "─" * pad_l + label + "─" * pad_r
55
56
57class _LiveCapture:

Callers 5

run_peerFunction · 0.85
run_promptedFunction · 0.85
run_positionalFunction · 0.85
run_directFunction · 0.85
_run_basic_fallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected