ssh-portkey 0.1.4

Secure SSH credential manager with a fast ratatui-based TUI, fuzzy search, and encrypted vault
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;
use portkey::{cli, debug};
use std::env;

#[tokio::main]
async fn main() -> Result<()> {
    sodiumoxide::init().expect("Failed to initialize sodiumoxide");

    // Check for debug flag
    let args: Vec<String> = env::args().collect();
    if args.len() > 1 && args[1] == "debug" {
        debug::debug_vault();
        return Ok(());
    }

    let mut handler = cli::CliHandler::new()?;
    handler.run().await
}