MCPcopy Create free account
hub / github.com/freecodexyz/free-code / GREP_SEMANTIC

Function GREP_SEMANTIC

src/tools/PowerShellTool/commandSemantics.ts:41–44  ·  view source on GitHub ↗
(exitCode, _stdout, _stderr)

Source from the content-addressed store, hash-verified

39 * grep / ripgrep: 0 = matches found, 1 = no matches, 2+ = error
40 */
41const 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected