* Non-TTY fallback: one plain line per phase, no rewrites, no ANSI. * Completion details (counts, timings) are printed by the caller's result * summary, so phase starts are all that's worth logging here.
()
| 134 | * summary, so phase starts are all that's worth logging here. |
| 135 | */ |
| 136 | function createPlainProgress(): ShimmerProgress { |
| 137 | let lastPhase = ''; |
| 138 | |
| 139 | return { |
| 140 | onProgress(progress: IndexProgress) { |
| 141 | if (progress.phase === lastPhase) return; |
| 142 | lastPhase = progress.phase; |
| 143 | const phaseName = PHASE_NAMES[progress.phase] || progress.phase; |
| 144 | process.stdout.write(`${phaseName}...\n`); |
| 145 | }, |
| 146 | |
| 147 | stop() { |
| 148 | return Promise.resolve(); |
| 149 | }, |
| 150 | }; |
| 151 | } |
no outgoing calls
no test coverage detected