(content: string)
| 13 | * Returns null if content is empty or not a valid number. |
| 14 | */ |
| 15 | export function parseExitCode(content: string): number | null { |
| 16 | const code = parseInt(content.trim(), 10); |
| 17 | return isNaN(code) ? null : code; |
| 18 | } |
| 19 | /** |
| 20 | * Parse PID from buildSpawnCommand output. |
| 21 | * Returns the PID or null if invalid. |
no outgoing calls
no test coverage detected