MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / shouldUseCliColor

Function shouldUseCliColor

src/utils/terminal-output.ts:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5let cachedUseCliColor: boolean | undefined;
6
7function shouldUseCliColor(): boolean {
8 if (cachedUseCliColor === undefined) {
9 cachedUseCliColor = process.stdout.isTTY === true && process.env.NO_COLOR === undefined;
10 }
11 return cachedUseCliColor;
12}
13
14function colorRed(text: string): string {
15 return `${ANSI_RED}${text}${ANSI_RESET}`;

Callers 1

formatCliTextLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected