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:
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 in console:
$ cargo test