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

Function main

github-actions/bazel/configure-remote/configure-remote.js:20687–20709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20685 silent: true
20686 });
20687 return {
20688 name: name.trim(),
20689 version: version.trim()
20690 };
20691 });
20692 var getMacOsInfo = () => __awaiter6(void 0, void 0, void 0, function* () {
20693 var _a, _b, _c, _d;
20694 const { stdout } = yield getExecOutput("sw_vers", void 0, {
20695 silent: true
20696 });
20697 const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : "";
20698 const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : "";
20699 return {
20700 name,
20701 version
20702 };
20703 });
20704 var getLinuxInfo = () => __awaiter6(void 0, void 0, void 0, function* () {
20705 const { stdout } = yield getExecOutput("lsb_release", ["-i", "-r", "-s"], {
20706 silent: true
20707 });
20708 const [name, version] = stdout.trim().split("\n");
20709 return {
20710 name,
20711 version
20712 };

Callers 1

Calls 6

getInputFunction · 0.85
getBooleanInputFunction · 0.85
__asyncFunction · 0.70
getEmbeddedCredentialFunction · 0.70
readFileGracefullyFunction · 0.70
exportVariableFunction · 0.70

Tested by

no test coverage detected