fs-encrypt 0.1.3

CLI tool for file encryption/decryption
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;
use std::error::Error;
use std::process;

fn main() -> Result<(), Box<dyn Error>> {
    let args = fs_encrypt::parse_arguments(env::args()).unwrap_or_else(|err| {
        eprintln!("invalid arguments: {err}");
        process::exit(1);
    });

    if let Err(e) = fs_encrypt::run(args) {
        eprintln!("file not found or missing permissions: {e}");
        process::exit(1);
    }

    Ok(())
}