dump.py 710 B

1234567891011121314151617
  1. """``hermes dump`` subcommand parser."""
  2. from __future__ import annotations
  3. from typing import Callable
  4. def build_dump_parser(subparsers, *, cmd_dump: Callable) -> None:
  5. """Attach the ``dump`` subcommand to ``subparsers``."""
  6. dump_parser = subparsers.add_parser(
  7. "dump", help="Dump setup summary for support/debugging",
  8. description="Output a compact, plain-text summary of your Hermes setup "
  9. "that can be copy-pasted into Discord/GitHub for support context")
  10. dump_parser.add_argument(
  11. "--show-keys", action="store_true",
  12. help="Show redacted API key prefixes (first/last 4 chars) instead of just set/not set")
  13. dump_parser.set_defaults(func=cmd_dump)