feat: consolidate 'hermes version' into 'hermes --version', remove the subcommand
'hermes --version' (and -V) now prints the full version report — banner version line with upstream SHA, install directory, authoritative install method, Python and OpenAI SDK versions, and update status — making the separate 'hermes version' subcommand redundant. The subcommand is removed. - _startup_fast.print_fast_version_info() is now THE canonical version printer: static lines print instantly from stdlib probes, then the banner label, install-method resolver, and update check lazy-import after the first line is on screen (each degrades gracefully). - main.py _print_version_info() delegates to it (used by /version in the CLI chat surface and the --version flag path); the old duplicate implementation is deleted. - hermes_cli/subcommands/version.py removed; parser wiring, subcommand sets, console-engine extraction entry, and tests updated. Hermes Console keeps a 'version' command wired to the shared printer. - Termux fast paths now include update status too (previously check_updates=False). - Docs/i18n, CONTRIBUTING, SECURITY, and nix checks updated to 'hermes --version'.
This commit is contained in:
+2
-2
@@ -78,7 +78,7 @@ hermes [global-options] <command> [subcommand/options]
|
||||
| `hermes dashboard` | 启动用于管理配置、API 密钥和会话的 Web 控制台。 |
|
||||
| `hermes profile` | 管理 profile——多个隔离的 Hermes 实例。 |
|
||||
| `hermes completion` | 打印 shell 补全脚本(bash/zsh/fish)。 |
|
||||
| `hermes version` | 显示版本信息。 |
|
||||
| `hermes --version` | 显示版本信息。 |
|
||||
| `hermes update` | 拉取最新代码并重新安装依赖。`--check` 预览而不安装;`--backup` 在拉取前对 `HERMES_HOME` 进行快照。 |
|
||||
| `hermes uninstall` | 从系统中删除 Hermes。 |
|
||||
|
||||
@@ -1246,7 +1246,7 @@ hermes update [--check] [--backup] [--restart-gateway]
|
||||
|
||||
| 命令 | 说明 |
|
||||
|---------|-------------|
|
||||
| `hermes version` | 打印版本信息。 |
|
||||
| `hermes --version` | 打印版本信息。 |
|
||||
| `hermes update` | 拉取最新变更并重新安装依赖。 |
|
||||
| `hermes uninstall [--full] [--yes]` | 删除 Hermes,可选择删除所有 config/数据。 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user