Fetch User Keys - simple tool for fetching SSH keys from various sources
1const EXAMPLE: &'static str = r#"
2[[entry]]
3name = "hauleth"
4keys = [
5 { Forge = { user = "~hauleth", host = "meta.sr.ht" } }
6]
7
8[[entry]]
9name = "heimdall"
10keys = [
11 { Host = [ "heimdall" ] }
12]
13"#;
14
15#[tokio::main]
16async fn main() {
17 let config: fuk::config::Config =
18 toml::from_str(EXAMPLE).unwrap();
19
20 println!("{:#?}", config);
21
22 let output = fuk::fuk(config).await;
23 println!("{}", serde_json::to_string_pretty(&output.keys).unwrap());
24}