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

Function grep

server/src/ops/content.rs:94–102  ·  view source on GitHub ↗
(
    root: &Path,
    file_tree: &Arc<FileTree>,
    pattern: &str,
    max_matches: usize,
    context_lines: usize,
)

Source from the content-addressed store, hash-verified

92/// Grep with default scope (matches anywhere). Convenience wrapper.
93#[allow(dead_code)]
94pub fn grep(
95 root: &Path,
96 file_tree: &Arc<FileTree>,
97 pattern: &str,
98 max_matches: usize,
99 context_lines: usize,
100) -> Result<GrepResponse, String> {
101 grep_with_scope(root, file_tree, pattern, max_matches, context_lines, GrepScope::All, None)
102}
103
104pub fn grep_with_scope(
105 root: &Path,

Callers

nothing calls this directly

Calls 1

grep_with_scopeFunction · 0.85

Tested by

no test coverage detected