feat: print install method when running --version

This commit is contained in:
ethernet 2026-07-02 19:46:07 -04:00
parent 8fa9e6c013
commit eb40402420
2 changed files with 6 additions and 4 deletions

View file

@ -229,9 +229,9 @@ def _read_openai_version_fast() -> str | None:
def _print_fast_version_info() -> None:
from hermes_cli import __release_date__, __version__
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
print(f"Hermes Agent v{__version__} ({__release_date__})")
print(f"Project: {project_root}")
print(f"Install directory: {PROJECT_ROOT}")
print(f"Python: {sys.version.split()[0]}")
openai_version = _read_openai_version_fast()
@ -4338,10 +4338,12 @@ def cmd_import(args):
def _print_version_info(*, check_updates: bool = True) -> None:
from hermes_cli.config import detect_install_method
from hermes_cli.banner import format_banner_version_label
print(format_banner_version_label())
print(f"Project: {PROJECT_ROOT}")
print(f"Install directory: {PROJECT_ROOT}")
print(f"Install method: {detect_install_method(PROJECT_ROOT)}")
# Show Python version
print(f"Python: {sys.version.split()[0]}")

View file

@ -407,7 +407,7 @@ def test_termux_ultrafast_version_runs_before_heavy_startup(
out = capsys.readouterr().out
assert "Hermes Agent v" in out
assert "Project:" in out
assert "Install directory:" in out
assert "Python:" in out
assert "OpenAI SDK:" in out