0.1.1 |
|
---|---|
0.1.0 |
|
#253 in #grep
5KB
92 lines
Simple usage
Build progect
Run in console:
$ cargo build
Then yo can check for executable in ./target/debug
.
It is ./target/debug/guessing_game
.
Run program
To run program you can use built executable (see previous section) or you can run in console:
- Case sensitive search:
$ cargo run <search-string> <filename>
-
Case insensitive search:
- for Linux:
$ CASE_INSENSITIVE=true cargo run <search-string> <filename>
- for Windows:
PS> $Env:CASE_INSENSITIVE=1; cargo run to poem.txt
then unset
CASE_INSENSITIVE
environment variable:PS> Remove-Item Env:CASE_INSENSITIVE
Run tests
Run in console:
$ cargo test