Skip to main content

grep_command

Function grep_command 

Source
pub fn grep_command(
    use_rg: bool,
    pattern: &str,
    sub: &str,
    glob: &str,
) -> String
Expand description

The search command. ripgrep honours .gitignore, which keeps dependency and build trees out of results; the grep fallback (used when a container has no rg) excludes them explicitly, or a search over node_modules returns megabyte-long minified lines.