oh yeah output formatting

This commit is contained in:
2023-09-30 06:49:09 -04:00
parent 4642ea39a6
commit 76c107aee2
3 changed files with 161 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
*/
use age::{self, secrecy::ExposeSecret, Identity, Recipient};
use chrono::{prelude::{DateTime, Local}, SecondsFormat};
use glob_match::glob_match;
use rayon::prelude::*;
use std::{env, process};
@@ -79,5 +80,8 @@ fn main() {
}
};
println!("{:#?}", pairs);
let (key_priv, key_pub) = pairs.first().unwrap();
let timestamp: DateTime<Local> = std::time::SystemTime::now().into();
let timestamp = timestamp.to_rfc3339_opts(SecondsFormat::Secs, false);
println!("# created: {}\n# public key: {key_pub}\n{key_priv}", timestamp);
}