hanko 1.1.2

Keeps your Git allowed signers file up to date with signing keys configured on software development platforms like GitHub and GitLab.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));

/// Returns the parent directory of the given path with appropriate context added in the error case.
pub(crate) fn parent_dir(path: &std::path::Path) -> anyhow::Result<&std::path::Path> {
    use anyhow::Context;

    path.parent()
        .with_context(|| format!("{} has no parent directory", path.display()))
}

pub use source::{Error, Github, Gitlab, Protocol, Source};

pub mod allowed_signers;
pub mod cli;
pub mod config;
mod source;