From 97089d19a4b339a622d78e48a41f1d67273752fd Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 22 Nov 2025 20:16:14 +0800 Subject: Add account key generation and public key export features - Add `--keygen` flag to `account add` for automatic ED25519 key generation - Add `account genpub` command to export public keys - Update help documentation in both English and Chinese - Extend shell completion for new commands - Add error handling for OpenSSL operations --- locales/help_docs/en.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'locales/help_docs/en.yml') diff --git a/locales/help_docs/en.yml b/locales/help_docs/en.yml index dde2672..f46b6ab 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -196,12 +196,13 @@ jv: update - Download latest information [REMOTE] **ACCOUNTS**: - account [list|as|add|remove|movekey] + account [list|as|add|remove|movekey|genpub] list - List accounts as - Switch account in workspace add - Add account to this computer remove - Remove account from computer movekey - Move private key file to specified account + genpub - Output public key file to specified directory **SHEETS**: sheet [list|use|exit|make|drop|align] @@ -246,6 +247,10 @@ jv: jv account add - Add an account to this computer jv account remove - Delete this account jv account movekey - Move private key to specified account + jv account genpub - Output public key to specified directory, leave empty for current directory + + **Tip**: Use jv account add --keygen to automatically generate ED25519 private key for your account + **Note**: Both `--keygen` and `genpub` require your computer to be able to directly call OpenSSL command-line tools Accounts are identity identifiers on the local computer, each account can be associated with different private keys. You need to set up accounts before interacting with upstream vaults. @@ -484,7 +489,15 @@ jv: remove: Failed to remove account `%{account}`, please check if the account exists. list: Failed to get account list! not_found: Cannot find account `%{account}`! + no_key_registered: Account `%{account}` has no registered private key! as: Failed to set current account, please ensure the current sheet has been exited + keygen: Failed to generate private key! Please try generating private key manually + keygen_exec: | + Failed to run OpenSSL! + Please check if OpenSSL is installed on your computer + generate_pub_key: | + Failed to generate public key! + Please check if OpenSSL is installed, or manually generate the public key init_create_dir_not_empty: | The current directory is not empty! @@ -555,6 +568,7 @@ jv: status_has_key: (REGISTERED) move_key: Successfully moved the private key to the account directory! + generate_pub_key: Successfully generated public key at `%{export}`, please give it to the upstream vault administrator! create: Successfully created local workspace! init: Successfully created workspace here! unstain: | -- cgit