rsecure 0.8.0

A simple file encryption and decryption tool using AES-GCM.
#![forbid(unsafe_code)]

mod cli;
mod commands;
mod crypto;
mod file_ops;
mod format;

mod utils;

use clap::Parser;
use cli::{Commands, RsecureCliArgs};

fn main() -> anyhow::Result<()> {
    let args = RsecureCliArgs::parse();

    match args.command {
        Commands::CreateKey(create_key_args) => commands::create_key::run(create_key_args)?,
        Commands::Encrypt(enc_args) => commands::encrypt_file::run(enc_args)?,
        Commands::Decrypt(dec_args) => commands::decrypt_file::run(dec_args)?,
    }
    Ok(())
}