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

Function exec

github-actions/saucelabs/set-saucelabs-env.js:20522–20533  ·  view source on GitHub ↗
(commandLine, args, options)

Source from the content-addressed store, hash-verified

20520 });
20521 };
20522 function exec(commandLine, args, options) {
20523 return __awaiter5(this, void 0, void 0, function* () {
20524 const commandArgs = argStringToArray(commandLine);
20525 if (commandArgs.length === 0) {
20526 throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
20527 }
20528 const toolPath = commandArgs[0];
20529 args = commandArgs.slice(1).concat(args || []);
20530 const runner = new ToolRunner(toolPath, args, options);
20531 return runner.exec();
20532 });
20533 }
20534 function getExecOutput(commandLine, args, options) {
20535 return __awaiter5(this, void 0, void 0, function* () {
20536 var _a, _b;

Callers 1

getExecOutputFunction · 0.70

Calls 4

__awaiter5Function · 0.70
argStringToArrayFunction · 0.70
sliceMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected