MCPcopy Index your code
hub / github.com/masterking32/MasterHttpRelayVPN / _c

Function _c

setup.py:26–29  ·  view source on GitHub ↗
(code: str, text: str)

Source from the content-addressed store, hash-verified

24
25
26def _c(code: str, text: str) -> str:
27 if os.environ.get("NO_COLOR") or not sys.stdout.isatty():
28 return text
29 return f"\033[{code}m{text}\033[0m"
30
31
32def bold(t: str) -> str: return _c("1", t)

Callers 6

boldFunction · 0.85
cyanFunction · 0.85
greenFunction · 0.85
yellowFunction · 0.85
redFunction · 0.85
dimFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected