keyhog 0.5.40

keyhog: detects leaked credentials in source trees, git history, and cloud storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! LR1-A8 replacement gate: `subcommands/completion.rs` bash shell.

use clap::Parser;
use clap_complete::Shell;
use keyhog::args::{Cli, Command};

#[test]
fn completion_bash_shell_is_selected() {
    let cli = Cli::try_parse_from(["keyhog", "completion", "bash"]).unwrap();
    match cli.command {
        Some(Command::Completion(args)) => assert_eq!(args.shell, Shell::Bash),
        other => panic!("expected Completion subcommand"),
    }
}