first commit
This commit is contained in:
24
README.md
Normal file
24
README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# minigrep
|
||||
|
||||
A command-line search tool built in Rust, following the [minigrep project](https://doc.rust-lang.org/book/ch12-00-an-io-project.html) from **The Rust Programming Language** book.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
cargo run -- <query> <file_path>
|
||||
```
|
||||
|
||||
## What it does
|
||||
|
||||
Searches for a string pattern within a file and prints the matching lines to stdout.
|
||||
|
||||
## Purpose
|
||||
|
||||
This is my personal implementation of the minigrep project from the Rust Book, used to practice Rust fundamentals such as:
|
||||
|
||||
- CLI argument handling
|
||||
- File I/O
|
||||
- Error handling
|
||||
- Structs and methods
|
||||
- Iterators and closures
|
||||
- Writing tests
|
||||
Reference in New Issue
Block a user