b81ab901f3
moa, fallback, worktree, browser, secrets, egress, migrate, whatsapp-cloud, checkpoints, bundles, curator, pets, journey, computer-use, sessions and completion each become a build_<group>_parser() builder. Closure handlers that only closed over their own parser moved verbatim; sessions/completion take the handler by injection. --help/usage/defaults byte-identical for all 399 parsers in the tree (in-process dump before/after).
24 lines
898 B
Python
24 lines
898 B
Python
"""``hermes bundles`` subcommand parser.
|
|
|
|
Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).
|
|
Handlers are injected or imported lazily so this module never imports ``main``.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
def build_bundles_parser(subparsers) -> None:
|
|
"""Attach the ``bundles`` subcommand to ``subparsers``."""
|
|
bundles_parser = subparsers.add_parser(
|
|
"bundles",
|
|
help="Create, list, and manage skill bundles (aliases for multiple skills)",
|
|
description=(
|
|
"Skill bundles let you load several skills under one slash "
|
|
"command. `/<bundle>` from the CLI or gateway loads every "
|
|
"referenced skill at once."
|
|
),
|
|
)
|
|
from hermes_cli.bundles import register_cli as _bundles_register, bundles_command
|
|
_bundles_register(bundles_parser)
|
|
bundles_parser.set_defaults(func=bundles_command)
|