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 ++++++- locales/help_docs/zh-CN.yml | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'locales') 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! diff --git a/locales/help_docs/zh-CN.yml b/locales/help_docs/zh-CN.yml index 2bd91ee..922514b 100644 --- a/locales/help_docs/zh-CN.yml +++ b/locales/help_docs/zh-CN.yml @@ -161,7 +161,8 @@ jv: no_account_set: | 当前工作区的账户为 `unknown`,这意味着您并未设置账户 - 使用 `jv as <账户名称>` 来为工作区指定账户 + 使用 `jv as <账户名称>` 来为工作区指定账户 + 或使用 `jv login <账户名称> <上游地址>` 来关联至上游库 account_not_exist: | 当前工作区设置的账户 `%{account}` 并未注册至您的计算机 @@ -178,7 +179,8 @@ jv: jv u 下载最新信息,jv t 追踪文件,jv a 对齐文件结构到表,jv in/out 导入或导出文件 **上游库**: - direct <上游地址> - 定向到工作区到上游库 [远程] + login <账户> <地址> - 设置账户、定向并获得上游信息 [远程] + direct <地址> - 定向到工作区到上游库 [远程] unstain - 祛色工作区,清除关联 update - 同步最新的信息 [远程] @@ -414,6 +416,9 @@ jv: 内建文档包含 JustEnoughVCS 的使用指南、协作范式和最佳实践 confirm: + login: | + 您正在以 %{account} 身份登陆上游库 %{upstream},请确认 + unstain: | 此操作将会断开当前工作区与上游库 `%{upstream}` 的关联 若重新连接至标识不匹配的库,会导致严重的问题,请谨慎操作! -- cgit