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

Method addList

github-actions/bazel/configure-remote/configure-remote.js:19692–19697  ·  view source on GitHub ↗

* Adds an HTML list to the summary buffer * * @param {string[]} items list of items to render * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) * * @returns {Summary} summary instance

(items, ordered = false)

Source from the content-addressed store, hash-verified

19690 return __awaiter(this, void 0, void 0, function* () {
19691 const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
19692 const filePath = yield this.filePath();
19693 const writeFunc = overwrite ? writeFile : appendFile;
19694 yield writeFunc(filePath, this._buffer, { encoding: "utf8" });
19695 return this.emptyBuffer();
19696 });
19697 }
19698 /**
19699 * Clears the summary buffer and wipes the summary file
19700 *

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.45
addEOLMethod · 0.45
addRawMethod · 0.45

Tested by

no test coverage detected