status.py 761 B

123456789101112131415161718
  1. """``hermes status`` subcommand parser."""
  2. from __future__ import annotations
  3. from typing import Callable
  4. def build_status_parser(subparsers, *, cmd_status: Callable) -> None:
  5. """Attach the ``status`` subcommand to ``subparsers``."""
  6. status_parser = subparsers.add_parser(
  7. "status", help="Show status of all components",
  8. description="Display status of Hermes Agent components")
  9. status_parser.add_argument(
  10. "--full", "--all", dest="full", action="store_true",
  11. help="Show every section (keys redacted) instead of the one-screen summary")
  12. status_parser.add_argument(
  13. "--deep", action="store_true", help="Run deep checks (implies --full; may take longer)")
  14. status_parser.set_defaults(func=cmd_status)