From 10d6a9a0dff6d6dab3410641f4c231f44f267245 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Wed, 17 Dec 2025 12:19:22 +0800 Subject: Add workspace root directory validation for sheet commands - Add new error message for non-root directory execution - Validate current directory in sheet use/exit commands - Add directory correction helper for other commands - Return Result from jv_sheet_exit to handle validation failures --- locales/help_docs/en.yml | 2 ++ locales/help_docs/zh-CN.yml | 2 ++ 2 files changed, 4 insertions(+) (limited to 'locales/help_docs') diff --git a/locales/help_docs/en.yml b/locales/help_docs/en.yml index 237b507..70b0b1c 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -517,6 +517,8 @@ jv: current_dir_name: Failed to get current directory name set_current_dir: Failed to set current directory to %{dir} + not_root_dir: This command needs to be execute in the workspace root directory! + move: rename_failed: | **Warning**: Failed to move local file `%{from}` to `%{to}`: %{error} diff --git a/locales/help_docs/zh-CN.yml b/locales/help_docs/zh-CN.yml index 5173daf..606f260 100644 --- a/locales/help_docs/zh-CN.yml +++ b/locales/help_docs/zh-CN.yml @@ -505,6 +505,8 @@ jv: current_dir_name: 无法获得当前目录的名称 set_current_dir: 无法设置到目录 %{dir} + not_root_dir: 该命令需要在工作区根目录运行! + move: rename_failed: | **警告**:移动本地文件 `%{from}` 至 `%{to}` 失败:%{error} -- cgit