ssh_vault/cli/
start.rs

1use crate::cli::{actions::Action, commands, dispatcher};
2use anyhow::Result;
3
4/// Start the CLI
5///
6/// # Errors
7///
8/// Returns an error if argument parsing or dispatching fails.
9pub fn start() -> Result<Action> {
10    let cmd = commands::new();
11    let matches = cmd.get_matches();
12    let action = dispatcher::dispatch(&matches)?;
13    Ok(action)
14}