run

Function run 

Source
pub fn run(config: Config) -> Result<(), Box<dyn Error>>
Expand description

Run the search using the provided configuration.

Reads the file specified in config.filename, performs the appropriate search (case-sensitive or case-insensitive) and prints matching lines to stdout. Errors from reading the file are propagated to the caller.