graby 1.0.0

Search and print matching patterns in given file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use clap::Parser;
use graby::Config;
use std::process;

fn main() {
    // Parsing the terminal arguments to the Config structure.
    let config = Config::parse();
    // Check for parsing errors.
    if let Err(e) = graby::run(config) {
        eprintln!("Application error: {e}");
        process::exit(1);
    }
}