Skip to content

Commit

Permalink
prints Key ID and Public Key info after warg key new (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp authored Mar 2, 2024
1 parent 7a2d1f5 commit fd8b8cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ impl KeyNewCommand {
config.home_url.clone(),
)?;
config.write_to_file(&Config::default_config_path()?)?;
let public_key = key.public_key();
println!("Key ID: {}", public_key.fingerprint());
println!("Public Key: {public_key}");
Ok(())
}
}
Expand Down

0 comments on commit fd8b8cd

Please sign in to comment.