MCPcopy Index your code
hub / github.com/TanStack/ai / updateProgress

Function updateProgress

packages/ai-code-mode-skills/test-cli/cli.ts:151–164  ·  view source on GitHub ↗

* Update progress display

(
  completed: number,
  total: number,
  running: string[],
  failed: number,
)

Source from the content-addressed store, hash-verified

149 * Update progress display
150 */
151function updateProgress(
152 completed: number,
153 total: number,
154 running: string[],
155 failed: number,
156) {
157 clearLine()
158 const runningStr =
159 running.length > 0 ? ` | Running: ${running.join(', ')}` : ''
160 const failedStr = failed > 0 ? ` | ❌ ${failed} failed` : ''
161 process.stdout.write(
162 `⏳ Progress: ${completed}/${total} completed${failedStr}${runningStr}`,
163 )
164}
165
166/**
167 * Run tests in parallel with progress display

Callers 2

runParallelFunction · 0.85
runTaskFunction · 0.85

Calls 2

clearLineFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected