pub fn grep_search(
pattern: &str,
path: &str,
recursive: bool,
max_matches: usize,
offset: usize,
) -> GrepSearchResultExpand description
Standalone function for grep search (for use in tests and other modules)
§Arguments
pattern- Regex pattern to search forpath- File or directory to search inrecursive- Whether to search recursivelymax_matches- Maximum number of matches to returnoffset- Number of matches to skip
§Returns
A GrepSearchResult containing matches and metadata