Skip to content

Commit 9155815

Browse files
committed
chore: polishing
1 parent 480a0c5 commit 9155815

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/commands/keypair.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,13 @@ fn import_private_key() {
8282
let private_key = rpassword::prompt_password("Private key: ").unwrap();
8383
let group = rprompt::prompt_reply("Group: ").unwrap();
8484
let name = rprompt::prompt_reply("Name: ").unwrap();
85-
let comment = rprompt::prompt_reply("Note: ").unwrap();
85+
let profile = rprompt::prompt_reply("Profile: ").unwrap();
8686
if let Ok(pair) = EcKeyPair::from_input(&private_key) {
8787
let public_key = pair.get_pk_hex();
8888
let mut key_pair = KeyPair::new(&public_key, &private_key, &None);
8989
key_pair.group = Some(group);
9090
key_pair.name = Some(name);
91-
if !comment.is_empty() {
92-
key_pair.comment = Some(comment);
93-
}
91+
key_pair.profile = Some(profile);
9492
write_key_pair(&key_pair).unwrap();
9593
println!(
9694
"{}",

0 commit comments

Comments
 (0)