MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / applyRunExitCode

Function applyRunExitCode

packages/cli/src/cli/cmd/run/exit-code.ts:3–11  ·  view source on GitHub ↗
(results: Map<CmdRunTask, CmdRunTaskResult>)

Source from the content-addressed store, hash-verified

1import { CmdRunTask, CmdRunTaskResult } from "./_types";
2
3export function applyRunExitCode(results: Map<CmdRunTask, CmdRunTaskResult>) {
4 const hasErrors = Array.from(results.values()).some(
5 (r) => r.status === "error",
6 );
7 if (hasErrors) {
8 process.exitCode = 1;
9 }
10 return hasErrors;
11}

Callers 2

exit-code.spec.tsFile · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected