INNER CODE UNIT · Python
_dispatch
christopherkarani/Wax · Resources/hermes/wax-memory-plugin/cli.py:251
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:
print("Usage: hermes wax-memory <status|doctor|config>")
subparser.set_defaults(func=_dispatch)