Skip to content

Commit

Permalink
More CLI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Aug 6, 2024
1 parent b767c73 commit 7a70499
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions convex-cli/src/main/java/convex/cli/key/KeyDelete.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class KeyDelete extends AKeyCommand {

protected void deleteEntry(String alias) throws KeyStoreException {
storeMixin.getKeystore().deleteEntry(alias);
inform(2,"Deleting Key: "+alias);
inform("Deleting Key: "+alias);
}

@Override
Expand Down Expand Up @@ -91,9 +91,7 @@ public void run() {
}
}
}

storeMixin.saveKeyStore();

}


Expand Down
4 changes: 2 additions & 2 deletions convex-cli/src/main/java/convex/cli/key/KeyGenerate.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@Command(name="generate",
aliases={"gen"},
mixinStandardHelpOptions=true,
description="Generate private key pair(s) in the currently configured keystore. Will create a keystore if it does not exist.")
description="Generate private key pair(s) in the currently configured keystore.")
public class KeyGenerate extends AKeyCommand {

@Option(names="--count",
Expand Down Expand Up @@ -75,8 +75,8 @@ public void run() {
AKeyPair kp=generateKeyPair();
String publicKeyHexString = kp.getAccountKey().toHexString();
char[] keyPassword=keyMixin.getKeyPassword();
cli().println(publicKeyHexString); // Output generated public key
storeMixin.addKeyPairToStore(kp, keyPassword);
println(publicKeyHexString); // Output generated public key
Arrays.fill(keyPassword, 'p');
}
informSuccess(count+ " key(s) generated");
Expand Down
2 changes: 1 addition & 1 deletion convex-cli/src/main/java/convex/cli/key/KeyImport.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
*/
@Command(name="import",
description="Import key pairs to the keystore. Can specify either a raw key with --text or --import-file")
description="Import key pairs to the keystore.")
public class KeyImport extends AKeyCommand {

@ParentCommand
Expand Down

0 comments on commit 7a70499

Please sign in to comment.