tirith 0.4.1

Terminal security - catches homograph attacks, pipe-to-shell, ANSI injection
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::CommandFactory;
use std::io;

pub fn run() -> i32 {
    let cmd = crate::Cli::command();
    let man = clap_mangen::Man::new(cmd);
    match man.render(&mut io::stdout()) {
        Ok(()) => 0,
        Err(e) => {
            eprintln!("tirith: failed to generate man page: {e}");
            1
        }
    }
}