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

Function runCommands

ng-dev/perf/workflow/workflow.ts:49–57  ·  view source on GitHub ↗

* Run a set of commands provided as a multiline text block. Commands are assumed to always be * provided on a single line.

(commands?: string[])

Source from the content-addressed store, hash-verified

47 * provided on a single line.
48 */
49async function runCommands(commands?: string[]) {
50 if (!commands || commands.length === 0) {
51 return;
52 }
53
54 for (const cmd of commands) {
55 await ChildProcess.exec(cmd, {mode: 'on-error'});
56 }
57}

Callers 1

measureWorkflowFunction · 0.85

Calls 1

execMethod · 0.45

Tested by

no test coverage detected