MCPcopy Index your code
hub / github.com/angular/dev-infra / exec

Function exec

ng-dev/utils/child-process.ts:145–148  ·  view source on GitHub ↗

* Execs a given command with the specified arguments inside a shell. All process stdout * output is captured and returned as resolution on completion. Depending on the chosen * output mode, stdout/stderr output is also printed to the console, or only on error. * * @returns a Promise reso

(command: string, options: ExecOptions = {})

Source from the content-addressed store, hash-verified

143 * rejects on command failure.
144 */
145 static exec(command: string, options: ExecOptions = {}): Promise<SpawnResult> {
146 const env = getEnvironmentForNonInteractiveCommand(options.env);
147 return processAsyncCmd(command, options, _exec(command, {...options, env}));
148 }
149}
150
151/**

Callers

nothing calls this directly

Calls 2

processAsyncCmdFunction · 0.85

Tested by

no test coverage detected