MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / read_text

Function read_text

Scripts/Developer Base/Mobile Developer Setup.py:335–341  ·  view source on GitHub ↗
(p: Path)

Source from the content-addressed store, hash-verified

333
334
335def supports_color() -> bool:
336 return sys.stdout.isatty() and os.environ.get("TERM", "") not in ("", "dumb")
337
338
339def c(text: str, color: str) -> str:
340 return f"{color}{text}{C.END}" if supports_color() else text
341
342
343def header(title: str) -> None:
344 print("\n" + c("═" * 62, C.DIM))

Callers 3

upsert_zshrc_sectionFunction · 0.70
configure_termux_uiFunction · 0.70
uninstall_files_onlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected