The app is an very basic implementation of grep.
It is inspired by this simple CLI app from the Rust book, ch 12.
- Create a
grep
like command that works in both:- detect
stdin
redirected mode vs "normal" mode (usingatty
crate) -
stdin
redirected mode- builder for args for search string and case-insensitive search
- colorize output for matches
- file reading mode
- builder for args for search string, file path, and case-insensitive search
- colorize output for matches
- detect
To run the program, you can execute the run.fish
script.