INNER CODE UNIT · Python
register_cli
christopherkarani/Wax · Resources/hermes/wax-memory-plugin/cli.py:244
def register_cli(subparser) -> None:
"""Build the `hermes wax-memory` argparse tree."""
subs = subparser.add_subparsers(dest="wax_memory_command")
subs.add_parser("status", help="Show Wax provider and broker status")
subs.add_parser("doctor", help="Diagnose Wax MCP connectivity and vector search")
subs.add_parser("config", help="Show resolved Wax provider config")
def _dispatch(args) -> None:
command = getattr(args, "wax_memory_command", None)
if command == "status":
_print_status(args)
elif command == "doctor":
exit_code = _print_status(args)
if exit_code:
raise SystemExit(exit_code)
elif command == "config":
_print_config(args)
else: