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

Function createCliProgressReporter

src/utils/cli-progress-reporter.ts:8–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8export function createCliProgressReporter(): CliProgressReporter {
9 const spinner = clack.spinner();
10 let active = false;
11
12 return {
13 update(message: string): void {
14 if (!active) {
15 spinner.start(message);
16 active = true;
17 return;
18 }
19
20 spinner.message(message);
21 },
22 clear(): void {
23 if (!active) {
24 return;
25 }
26
27 spinner.clear();
28 active = false;
29 },
30 };
31}

Callers 1

createCliTextRendererFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected