* Internal implementation for completing the spinner, marking it as completed, and printing the * final frame.
(prefix: string, text: string)
| 67 | * final frame. |
| 68 | */ |
| 69 | private _complete(prefix: string, text: string) { |
| 70 | if (this.completed) { |
| 71 | return; |
| 72 | } |
| 73 | clearInterval(this.intervalId); |
| 74 | this.printFrame(prefix, text); |
| 75 | process.stdout.write('\n'); |
| 76 | this.showCursor(); |
| 77 | this.completed = true; |
| 78 | } |
| 79 | |
| 80 | /** Get the next spinner character. */ |
| 81 | private getNextSpinnerCharacter() { |
no test coverage detected