diff --git a/convex-cli/src/main/java/convex/cli/key/KeyDelete.java b/convex-cli/src/main/java/convex/cli/key/KeyDelete.java index 725fcbd3b..f85c3ba5b 100644 --- a/convex-cli/src/main/java/convex/cli/key/KeyDelete.java +++ b/convex-cli/src/main/java/convex/cli/key/KeyDelete.java @@ -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 @@ -91,9 +91,7 @@ public void run() { } } } - storeMixin.saveKeyStore(); - } diff --git a/convex-cli/src/main/java/convex/cli/key/KeyGenerate.java b/convex-cli/src/main/java/convex/cli/key/KeyGenerate.java index 193c1d930..1d9ff5fe4 100644 --- a/convex-cli/src/main/java/convex/cli/key/KeyGenerate.java +++ b/convex-cli/src/main/java/convex/cli/key/KeyGenerate.java @@ -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", @@ -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"); diff --git a/convex-cli/src/main/java/convex/cli/key/KeyImport.java b/convex-cli/src/main/java/convex/cli/key/KeyImport.java index b146f7458..33e91027d 100644 --- a/convex-cli/src/main/java/convex/cli/key/KeyImport.java +++ b/convex-cli/src/main/java/convex/cli/key/KeyImport.java @@ -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