revault_cli 0.0.3

CLI for reVault encrypted lockboxes, store files, variables and forms with integration to your platform key storage
#![deny(unsafe_op_in_unsafe_fn)]
#![deny(clippy::undocumented_unsafe_blocks)]

#[path = "../commands/mod.rs"]
mod commands;
#[path = "../secret_prompt.rs"]
mod secret_prompt;

fn main() {
    if let Err(err) = commands::run() {
        if let Some(err) = err.downcast_ref::<clap::Error>() {
            if let Err(print_err) = err.print() {
                eprintln!("error: {print_err}");
            }
        } else {
            eprintln!("error: {err}");
        }
        std::process::exit(1);
    }
}