MCPcopy Create free account
hub / github.com/angular/dev-infra / _complete

Method _complete

ng-dev/utils/spinner.ts:69–78  ·  view source on GitHub ↗

* Internal implementation for completing the spinner, marking it as completed, and printing the * final frame.

(prefix: string, text: string)

Source from the content-addressed store, hash-verified

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() {

Callers 3

successMethod · 0.95
failureMethod · 0.95
completeMethod · 0.95

Calls 3

printFrameMethod · 0.95
showCursorMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected