Crates.io | minigrep_243307 |
lib.rs | minigrep_243307 |
version | 0.1.1 |
source | src |
created_at | 2022-04-10 13:04:38.289491 |
updated_at | 2022-04-10 13:10:33.271096 |
description | A test implementation of simplified cli "grep" tool. |
homepage | |
repository | |
max_upload_size | |
id | 565070 |
size | 4,692 |
Run in console:
$ cargo build
Then yo can check for executable in ./target/debug
.
It is ./target/debug/guessing_game
.
To run program you can use built executable (see previous section) or you can run in console:
$ cargo run <search-string> <filename>
Case insensitive search:
$ CASE_INSENSITIVE=true cargo run <search-string> <filename>
PS> $Env:CASE_INSENSITIVE=1; cargo run to poem.txt
then unset CASE_INSENSITIVE
environment variable:
PS> Remove-Item Env:CASE_INSENSITIVE
Run in console:
$ cargo test