Skip to main content

Module grep

Module grep 

Source
Expand description

Grep-style search over Ito change artifacts using ripgrep crates. Grep-style search over Ito change artifacts.

Provides a consistent search interface that works whether artifacts live on the local filesystem (.ito/) or have been materialised from a remote backend into a local cache. The search engine uses the ripgrep crate ecosystem (grep-regex, grep-searcher) so callers get familiar regex semantics without shelling out.

Structs§

GrepInput
Input parameters for a grep operation.
GrepMatch
A single matching line returned by the grep engine.
GrepOutput
Result of a grep operation.

Enums§

GrepScope
Scope of the grep search.

Functions§

collect_change_artifact_files
Collect all artifact markdown files for a single change directory.
grep
Resolve the grep scope to a list of artifact files and execute the search.
search_files
Search the given files for lines matching pattern, returning at most limit results (0 means unlimited).