MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / colorize

Function colorize

examples/API Test/test_api.py:138–139  ·  view source on GitHub ↗
(text: str, color: str)

Source from the content-addressed store, hash-verified

136
137
138def colorize(text: str, color: str) -> str:
139 return f"{color}{text}{Colors.RESET}" if COLORS_ENABLED else text
140
141
142def success(text: str) -> str:

Callers 6

successFunction · 0.85
errorFunction · 0.85
infoFunction · 0.85
warningFunction · 0.85
dimFunction · 0.85
boldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected