()
| 164 | let line = ''; |
| 165 | let stopped = false; |
| 166 | const tick = () => { |
| 167 | if (stopped) return; |
| 168 | const spin = SPINNER[spinnerIdx++ % SPINNER.length]; |
| 169 | process.stderr.write(`\r\x1b[K ${spin} ${line}`); |
| 170 | }; |
| 171 | const interval = setInterval(tick, 80); |
| 172 | const stop = () => { |
| 173 | if (stopped) return; |