Expand description
§Minigrep
minigrep_vandaeldev
is a CLI tool for searching a particular
piece of text within a textfile.
Structs§
- Config
- An interface to store configuration arguments passed through the CLI.
Functions§
- run
- The entry function of the program. Reads the file of the given config, and searches through the contents for a match with the query of the given config. Prints out the matching lines.
- search_
ci - Searches through
contents
, filtering out lines that do not matchquery
. This search is case insensitive. Returns a new vector containing the matching lines. - search_
cs - Searches through
contents
, filtering out lines that do not matchquery
. This search is case sensitive. Returns a new vector containing the matching lines.