ssh-vault 1.3.4

encrypt/decrypt using ssh keys
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::cli::{actions::Action, commands, dispatcher};
use anyhow::Result;

/// Start the CLI
///
/// # Errors
///
/// Returns an error if argument parsing or dispatching fails.
pub fn start() -> Result<Action> {
    let cmd = commands::new();
    let matches = cmd.get_matches();
    let action = dispatcher::dispatch(&matches)?;
    Ok(action)
}