MCPcopy
hub / github.com/ampproject/amphtml / logOnSameLine

Function logOnSameLine

build-system/common/logging.js:57–64  ·  view source on GitHub ↗

* Logs messages on the same line to indicate progress * @param {...string} messages

(...messages)

Source from the content-addressed store, hash-verified

55 * @param {...string} messages
56 */
57function logOnSameLine(...messages) {
58 if (!isCiBuild() && process.stdout.isTTY) {
59 process.stdout.moveCursor(0, -1);
60 process.stdout.cursorTo(0);
61 process.stdout.clearLine(0);
62 }
63 log(...messages);
64}
65
66/**
67 * Logs messages on the same line only during local development

Callers 4

runLinterFunction · 0.85
summarizeResultsFunction · 0.85
runPrettifyFunction · 0.85
logOnSameLineLocalDevFunction · 0.85

Calls 2

isCiBuildFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected