(exitCode, _stdout, _stderr)
| 20 | * Default semantic: treat only 0 as success, everything else as error |
| 21 | */ |
| 22 | const DEFAULT_SEMANTIC: CommandSemantic = (exitCode, _stdout, _stderr) => ({ |
| 23 | isError: exitCode !== 0, |
| 24 | message: |
| 25 | exitCode !== 0 ? `Command failed with exit code ${exitCode}` : undefined, |
| 26 | }) |
| 27 | |
| 28 | /** |
| 29 | * Command-specific semantics |
nothing calls this directly
no outgoing calls
no test coverage detected