* Removes the progress state and the namespace from the renderer instance. * Stops the renderer.spinner if there are no progress states.
()
| 518 | * Stops the renderer.spinner if there are no progress states. |
| 519 | */ |
| 520 | remove() { |
| 521 | if (!renderer.isInteractive || renderer.logLevel === 'compose') { |
| 522 | return |
| 523 | } |
| 524 | if (renderer.state.progressTasks.has(this.namespace) === undefined) { |
| 525 | return |
| 526 | } |
| 527 | this.message = null |
| 528 | writeProgress() |
| 529 | } |
| 530 | |
| 531 | /** |
| 532 | * Copy and return the current progress state. |
no test coverage detected