sample-grrs

Crates.iosample-grrs
lib.rssample-grrs
version0.1.0
sourcesrc
created_at2022-12-23 07:53:23.900499
updated_at2022-12-23 07:53:23.900499
descriptionA tool to search files
homepagehttps://github.com/probro27/sample-cli-application
repositoryhttps://github.com/probro27/sample-cli-application
max_upload_size
id744336
size22,833
Prabhav Khera (probro27)

documentation

README

Command Line Application

A clone for the popular grep command that takes in a pattern and a file path to give all of the lines with the occurances.

Right now only default patterns are supported with exact match.

Installation

You can install the project using the cargo install command.

cargo install <package_name>

Note: Here replace <package_name> with whatever the name of the package is :)

Running locally

To run, please use:

cargo run -- <pattern> <file_path>
cargo run -- main main.rs

Testing

There are some sample tests in the files unit.rs and cli.rs which check for unit tests and CLI test respectively. Feel free to run them if you decide to contribute!

Commit count: 4

cargo fmt