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

Function main

github-actions/browserstack/set-browserstack-env.js:20666–20678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20664 function rejected(value) {
20665 try {
20666 step(generator["throw"](value));
20667 } catch (e) {
20668 reject(e);
20669 }
20670 }
20671 function step(result) {
20672 result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
20673 }
20674 step((generator = generator.apply(thisArg, _arguments || [])).next());
20675 });
20676 };
20677 var getWindowsInfo = () => __awaiter6(void 0, void 0, void 0, function* () {
20678 const { stdout: version } = yield getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
20679 silent: true
20680 });
20681 const { stdout: name } = yield getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', void 0, {

Callers 1

Calls 4

updateMethod · 0.80
__asyncFunction · 0.70
setSecretFunction · 0.70
exportVariableFunction · 0.70

Tested by

no test coverage detected