keyhog 0.5.37

keyhog: detects leaked credentials in source trees, git history, and cloud storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! CLI path validation.

use anyhow::Result;
use std::path::Path;

pub fn validate_cli_path_arg(path: &Path, name: &str) -> Result<()> {
    if !path.exists() {
        anyhow::bail!("{} path does not exist: {}", name, path.display());
    }
    Ok(())
}