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

Function statusFromExitCodeAndSignal

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

* Convert the provided exitCode and signal to a single status code. * * During `exit` node provides either a `code` or `signal`, one of which is guaranteed to be * non-null. * * For more details see: https://nodejs.org/api/child_process.html#child_process_event_exit

(exitCode: number | null, signal: NodeJS.Signals | null)

Source from the content-addressed store, hash-verified

157 static exec(command: string, options: ExecOptions = {}): Promise<SpawnResult> {
158 const env = getEnvironmentForNonInteractiveCommand(options.env, options.cwd);
159 return processAsyncCmd(command, options, _exec(command, {...options, env}));
160 }
161}
162
163/**
164 * Convert the provided exitCode and signal to a single status code.

Callers 2

spawnSyncFunction · 0.85
processAsyncCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected