shellfirm 0.3.8

`shellfirm` will intercept any risky patterns (default or defined by you) and prompt you a small challenge for double verification, kinda like a captcha for your terminal.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::{crate_version, Arg, Command};

pub fn command() -> Command {
    Command::new("shellfirm")
        .version(crate_version!())
        .about("Protect yourself from risky shell commands with interactive challenges")
        .arg_required_else_help(true)
        .arg(
            Arg::new("log")
                .long("log")
                .help("Set logging level")
                .value_name("LEVEL")
                .value_parser(["off", "trace", "debug", "info", "warn", "error"])
                .default_value("error")
                .ignore_case(true),
        )
}