(exitCode, _stdout, _stderr)
| 30 | * Default semantic: treat only 0 as success, everything else as error |
| 31 | */ |
| 32 | const DEFAULT_SEMANTIC: CommandSemantic = (exitCode, _stdout, _stderr) => ({ |
| 33 | isError: exitCode !== 0, |
| 34 | message: |
| 35 | exitCode !== 0 ? `Command failed with exit code ${exitCode}` : undefined, |
| 36 | }) |
| 37 | |
| 38 | /** |
| 39 | * grep / ripgrep: 0 = matches found, 1 = no matches, 2+ = error |
nothing calls this directly
no outgoing calls
no test coverage detected