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

Method printNextLocalFrame

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

Print the current text for the spinner to the terminal.

(prefix: string, text?: string)

Source from the content-addressed store, hash-verified

98
99 /** Print the current text for the spinner to the terminal. */
100 private printNextLocalFrame(prefix: string, text?: string) {
101 cursorTo(process.stdout, 0);
102 process.stdout.write(` ${prefix} ${text || this.text}`);
103 // Clear to the right of the cursor location in case the new frame is shorter than the previous.
104 clearLine(process.stdout, 1);
105 }
106
107 /** Print the next expected piece for the spinner to stdout for CI usage. */
108 private printNextCIFrame(text?: string) {

Callers 1

printFrameMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected