Skip to main content

Crate grepme

Crate grepme 

Source
Expand description

§Grepme

A library that provides utilities necessary for grep-like operations.

The crate is organised into a few focused modules:

  • config — parsing of command-line arguments into a [Config], plus the CLI help text.
  • targets — expanding file/directory arguments into a flat list of files to search.
  • search — running a compiled regex against file contents.

Re-exports§

pub use targets::ExpansionFailed;

Modules§

config
Command-line argument parsing (Config) and the CLI help text.
search
targets
Expands a list of file/directory arguments into a flat list of files that should be searched.