summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/helpdoc/commands.en.md7
-rw-r--r--resources/helpdoc/commands.zh-CN.md7
-rw-r--r--resources/helpdoc/commands/version.en.md16
-rw-r--r--resources/helpdoc/commands/version.zh-CN.md15
-rw-r--r--resources/locales/jvn/cmds/version/en.yml20
-rw-r--r--resources/locales/jvn/cmds/version/zh-CN.yml20
-rw-r--r--resources/locales/jvn/en.yml20
-rw-r--r--resources/locales/jvn/zh-CN.yml1
8 files changed, 106 insertions, 0 deletions
diff --git a/resources/helpdoc/commands.en.md b/resources/helpdoc/commands.en.md
index 3a7cf06..6735831 100644
--- a/resources/helpdoc/commands.en.md
+++ b/resources/helpdoc/commands.en.md
@@ -21,6 +21,13 @@ Show command help.
> Or use `jvn helpdoc <DOCUMENT>`
> for full docs.
+### Version
+**Flag**: `--version` or `-v`
+Redirects the current command to the `version` command
+to display version information.
+> For usage of the version command,
+> see `commands/version`
+
### Renderer Override
**Flag**: `--renderer <RENDERER>`
Override output format.
diff --git a/resources/helpdoc/commands.zh-CN.md b/resources/helpdoc/commands.zh-CN.md
index fc734cf..909e4fb 100644
--- a/resources/helpdoc/commands.zh-CN.md
+++ b/resources/helpdoc/commands.zh-CN.md
@@ -21,6 +21,13 @@ jvn <子命令> <参数: ?> <标识符: ?>
> 当然,您也可以用 `jvn helpdoc <文档>`
> 来打开帮助文档页面
+### 显示版本
+**符号**:`--version` 或 `-v`
+将当前命令重新定向到 `version` 命令
+以显示版本信息
+> 关于 version 命令的用法,
+> 请查询 `commands/version`
+
### 渲染器覆盖
**符号**:`--renderer <渲染器>`
指定覆盖渲染器,将结果以指定格式输出
diff --git a/resources/helpdoc/commands/version.en.md b/resources/helpdoc/commands/version.en.md
new file mode 100644
index 0000000..2c3f5ae
--- /dev/null
+++ b/resources/helpdoc/commands/version.en.md
@@ -0,0 +1,16 @@
+> Display version information for the `jvn` tool
+
+## Usage
+jvn version # Show basic version
+jvn version --no-banner # Hide banner
+
+jvn version --with-compile-info
+jvn version -c # Display compile info
+
+## Aliases
+You can use the `-v` or `--version` flags to
+ redirect the command to version.
+
+### Example
+jvn -v -c
+jvn --version --no-banner
diff --git a/resources/helpdoc/commands/version.zh-CN.md b/resources/helpdoc/commands/version.zh-CN.md
new file mode 100644
index 0000000..3c3935d
--- /dev/null
+++ b/resources/helpdoc/commands/version.zh-CN.md
@@ -0,0 +1,15 @@
+> 显示 `jvn` 工具的版本信息
+
+## 使用
+jvn version # 显示基础版本号
+jvn version --no-banner # 不显示横幅,仅输出版本信息
+
+jvn version --with-compile-info
+jvn version -c # 显示版本号及编译信息
+
+## 别名
+您可以使用 `-v` 或 `--version` 符号将命令重定向到 version
+
+### 例如
+jvn -v -c
+jvn --version --no-banner
diff --git a/resources/locales/jvn/cmds/version/en.yml b/resources/locales/jvn/cmds/version/en.yml
new file mode 100644
index 0000000..2f48936
--- /dev/null
+++ b/resources/locales/jvn/cmds/version/en.yml
@@ -0,0 +1,20 @@
+version:
+ banner_title_line: JustEnoughVCS
+ banner_cmd_version: |
+ CORE: %{cli_version} (%{build_time})
+ banner_core_version: |
+ CLI: %{core_version}
+ no_banner_output: |
+ %{version}
+ no_banner_output_with_compile_info: |
+ VERSION: %{version}
+
+ compile_info:
+ info: |
+ COMPILE_INFO:
+ __ Date: [[cyan]]%{build_time}[[/]]
+ __ Target: [[cyan]]%{target}[[/]]
+ __ Platform:[[cyan]]%{platform} - %{toolchain}[[/]]
+
+ __ CORE:[[cyan]]%{core_branch}[[/]] (Commit: %{core_commit})
+ __ CLI:[[cyan]]%{cli_branch}[[/]] (Commit: %{cli_commit})
diff --git a/resources/locales/jvn/cmds/version/zh-CN.yml b/resources/locales/jvn/cmds/version/zh-CN.yml
new file mode 100644
index 0000000..0afd168
--- /dev/null
+++ b/resources/locales/jvn/cmds/version/zh-CN.yml
@@ -0,0 +1,20 @@
+version:
+ banner_title_line: JustEnoughVCS
+ banner_cmd_version: |
+ 命令行版本: %{cli_version} (%{build_time})
+ banner_core_version: |
+ 核心库版本: %{core_version}
+ no_banner_output: |
+ %{version}
+ no_banner_output_with_compile_info: |
+ 版本: %{version}
+
+ compile_info:
+ info: |
+ 编译信息:
+ __ 时间: [[cyan]]%{build_time}[[/]]
+ __ 目标: [[cyan]]%{target}[[/]]
+ __ 平台:[[cyan]]%{platform} - %{toolchain}[[/]]
+
+ __ 核心库:[[cyan]]%{core_branch}[[/]] (Commit: %{core_commit})
+ __ 命令行:[[cyan]]%{cli_branch}[[/]] (Commit: %{cli_commit})
diff --git a/resources/locales/jvn/en.yml b/resources/locales/jvn/en.yml
index ef3b273..f118566 100644
--- a/resources/locales/jvn/en.yml
+++ b/resources/locales/jvn/en.yml
@@ -1,3 +1,22 @@
+banner: |
+ _banner_begin
+ __ ████████ ████████
+ ██▒▒▒▒▒▒▒▒██ ██▒▒▒▒▒▒▒▒██
+ ██ ▒▒██ ██▒▒ ██ █████ ██ ██ ██████ █████
+ ██ ▒▒████████▒▒ ██ ▒▒▒██ ██ ██ ██████ ██████
+ ██ ▒▒▒▒▒▒▒▒ ██ ██ ██ ██ ███▒▒▒█ █▒▒▒▒█
+ ██ ██ ██ ██ ██ ███ ▒ ████ ▒
+ ██ ██ ██ ██ ██ ███ ▒████
+ ██ ████ ████ ██ ██ ▒██ ██▒ ███ ▒▒▒██
+ ██ ████ ████ ██ █ ██ ██ ██ ███ █ ██ ██
+ ██ ████ ████ ██ █ ██ ▒████▒ ▒██████ ██████
+ ██ ▒▒▒▒ ▒▒▒▒ █ ██ ▒████ ▒██▒ ██████ ▒████▒
+ ██ ██ ██ ▒▒▒▒ ▒▒ ▒▒▒▒▒▒ ▒▒▒▒
+ ██ ██████████ ██
+ ██ ██ %{banner_line_1}
+ __ ████████████████████████████████ %{banner_line_2}
+ __ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ %{banner_line_3}
+
process_error:
no_matching_command: |
No matching command found!
@@ -323,6 +342,7 @@ verbose:
disable_helpdoc: Helpdoc Viewer disabled
setup_i18n: Setting language to `%{lang}`
setup_renderer: Setting renderer to `%{renderer}`
+ redirect_to_version_command: Redirecting to `version` command
no_error_logs: Disabling error output
help: Help flag entered, command will not be executed
confirmed: Confirmation flag entered, all commands will run without confirmation
diff --git a/resources/locales/jvn/zh-CN.yml b/resources/locales/jvn/zh-CN.yml
index ca8a52e..8a7bdea 100644
--- a/resources/locales/jvn/zh-CN.yml
+++ b/resources/locales/jvn/zh-CN.yml
@@ -321,6 +321,7 @@ verbose:
disable_helpdoc: 帮助文档查看器已禁用
setup_i18n: 设置语言为 `%{lang}`
setup_renderer: 设置渲染器为 `%{renderer}`
+ redirect_to_version_command: 重定向至 `version` 命令
no_error_logs: 禁用错误输出
help: 帮助符号已输入,将不会执行命令
confirmed: 确认符号已输入,所有命令将无需确认即可运行