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

Function __awaiter5

github-actions/browserstack/set-browserstack-env.js:20495–20521  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

20493 }
20494 _debug(message) {
20495 if (this.options.listeners && this.options.listeners.debug) {
20496 this.options.listeners.debug(message);
20497 }
20498 }
20499 _getCommandString(options, noPrefix) {
20500 const toolPath = this._getSpawnFileName();
20501 const args = this._getSpawnArgs(options);
20502 let cmd = noPrefix ? "" : "[command]";
20503 if (IS_WINDOWS2) {
20504 if (this._isCmdFile()) {
20505 cmd += toolPath;
20506 for (const a of args) {
20507 cmd += ` ${a}`;
20508 }
20509 } else if (options.windowsVerbatimArguments) {
20510 cmd += `"${toolPath}"`;
20511 for (const a of args) {
20512 cmd += ` ${a}`;
20513 }
20514 } else {
20515 cmd += this._windowsQuoteCmdArg(toolPath);
20516 for (const a of args) {
20517 cmd += ` ${this._windowsQuoteCmdArg(a)}`;
20518 }
20519 }
20520 } else {
20521 cmd += toolPath;
20522 for (const a of args) {
20523 cmd += ` ${a}`;
20524 }

Callers 2

execFunction · 0.70
getExecOutputFunction · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected