hostcraft-cli 1.0.0

CLI for managing your system hosts file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod command;
mod display;

use clap::Parser;
use command::{Cli, run};
use display::print_error;
use std::process;

fn main() {
    let cli = Cli::parse();

    if let Err(e) = run(cli) {
        print_error(&e.to_string());
        process::exit(1);
    }
}