(...textTokens)
| 411 | * Handles writing text to the console. |
| 412 | */ |
| 413 | const writeText = (...textTokens) => { |
| 414 | // Stop the spinner to not collide with log output |
| 415 | renderer.spinner.stop() |
| 416 | |
| 417 | const text = joinTextTokens(textTokens) |
| 418 | process.stdout.write(joinTextTokens(text)) |
| 419 | |
| 420 | renderer.state.lastToken = text |
| 421 | |
| 422 | // Restart the spinner if it was stopped |
| 423 | renderer.spinner.start({ lineBreak: false }) |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * Join text tokens for the writeText method, ensuring correct array handling and joining. |
no test coverage detected
searching dependent graphs…