MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / cmd_grep

Function cmd_grep

plugin/skills/coderlm/scripts/coderlm_cli.py:287–298  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

285
286
287def cmd_grep(args: argparse.Namespace) -> None:
288 state = _load_state()
289 params = {"pattern": args.pattern}
290 if args.max_matches is not None:
291 params["max_matches"] = args.max_matches
292 if args.context_lines is not None:
293 params["context_lines"] = args.context_lines
294 if args.scope is not None:
295 params["scope"] = args.scope
296 if args.file is not None:
297 params["file"] = args.file
298 _output(_get(state, "/grep", params))
299
300
301def cmd_chunks(args: argparse.Namespace) -> None:

Callers

nothing calls this directly

Calls 3

_load_stateFunction · 0.85
_outputFunction · 0.85
_getFunction · 0.85

Tested by

no test coverage detected