Harness the power of signify(1) to sign arbitrary git objects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 17 lines 399 B view raw
1//! Return the fingerprint of some key. 2 3use std::path::PathBuf; 4 5use anyhow::Result; 6 7use super::utils; 8 9/// Execute the `fingerprint` command. 10pub fn command(key_path: PathBuf) -> Result<()> { 11 for (path, public_key) in utils::get_public_keys(key_path)? { 12 let hash = public_key.fingerprint()?; 13 println!("{}:", path.display()); 14 println!(" - {hash}"); 15 } 16 Ok(()) 17}