minigrep_243307

Crates.iominigrep_243307
lib.rsminigrep_243307
version0.1.1
sourcesrc
created_at2022-04-10 13:04:38.289491
updated_at2022-04-10 13:10:33.271096
descriptionA test implementation of simplified cli "grep" tool.
homepage
repository
max_upload_size
id565070
size4,692
(Onimi)

documentation

README

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:

  1. Case sensitive search:
$ cargo run <search-string> <filename>
  1. 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
Commit count: 0

cargo fmt