(code: string)
| 59 | } |
| 60 | |
| 61 | export function exitFor(code: string): ExitCodeValue { |
| 62 | return (CODE_TO_EXIT as Record<string, ExitCodeValue>)[code] ?? ExitCode.Generic |
| 63 | } |
| 64 | |
| 65 | export const ALL_ERROR_CODES: readonly ErrorCodeValue[] = Object.values(ErrorCode) |
| 66 | export const CODE_TO_EXIT_MAP: Readonly<Record<ErrorCodeValue, ExitCodeValue>> = CODE_TO_EXIT |
no outgoing calls
no test coverage detected