MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / print_text

Function print_text

src/hyperagent/utils.py:503–508  ·  view source on GitHub ↗

Print text with highlighting and no end characters.

(
    text: str, color: Optional[str] = None, end: str = "", file: Optional[TextIO] = None
)

Source from the content-addressed store, hash-verified

501
502
503def print_text(
504 text: str, color: Optional[str] = None, end: str = "", file: Optional[TextIO] = None
505) -> None:
506 """Print text with highlighting and no end characters."""
507 text_to_print = get_colored_text(text, color) if color else text
508 print(text_to_print, end=end, file=file)
509
510def extract_patch(
511 repo_dir: str

Callers

nothing calls this directly

Calls 1

get_colored_textFunction · 0.85

Tested by

no test coverage detected