(exitCode, _stdout, _stderr)
| 39 | * grep / ripgrep: 0 = matches found, 1 = no matches, 2+ = error |
| 40 | */ |
| 41 | const GREP_SEMANTIC: CommandSemantic = (exitCode, _stdout, _stderr) => ({ |
| 42 | isError: exitCode >= 2, |
| 43 | message: exitCode === 1 ? 'No matches found' : undefined, |
| 44 | }) |
| 45 | |
| 46 | /** |
| 47 | * Command-specific semantics for external executables. |
nothing calls this directly
no outgoing calls
no test coverage detected