From 1804e265b4b096bc1c2eb08869e33299ff11e93c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Nov 2025 17:42:36 +0800 Subject: Add login command combining account setup and vault connection The new `jv login` command streamlines the process of setting up a workspace by combining account selection, vault connection, and initial sync into a single operation. - Add completion support for login command - Update help documentation in both English and Chinese - Add confirmation prompt for login operation --- locales/help_docs/en.yml | 7 ++++++- 1 file changed, 6 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 a4dbaa6..820da3a 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -169,7 +169,8 @@ jv: no_account_set: | Current workspace account is `unknown`, meaning no account is set - Use `jv as ` to set account for workspace + Use `jv as ` to set account for workspace + or use `jv login ` to directly login to the upstream vault account_not_exist: | The account `%{account}` set for the current workspace is not registered on your computer @@ -189,6 +190,7 @@ jv: jv [in|out] - Import or export files [REMOTE] **UPSTREAM VAULT**: + login - Login to upstream vault [REMOTE] direct - Direct workspace to upstream vault [REMOTE] unstain - Unstain workspace, clear association update - Download latest information [REMOTE] @@ -411,6 +413,9 @@ jv: Built-in documentation includes JustEnoughVCS usage guides, collaboration paradigms, and best practices. confirm: + login: | + You are logging into upstream vault %{upstream} as %{account}, please confirm + unstain: | This operation will disconnect the current workspace from the upstream vault `%{upstream}` If you reconnect to a vault with a mismatched identifier, it will cause serious problems, please operate with caution! -- cgit