mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
fix(cli): wire hermes import-agent parser into main argparse tree
The import-agent subcommand (24c3c27ba8) shipped with its parser builder
and handler logic but build_import_agent_parser() was never called from
main.py, making the documented and unit-tested command uninvocable.
Register it alongside the other subcommand builders.
This commit is contained in:
parent
707f316687
commit
c19fd5c505
1 changed files with 11 additions and 1 deletions
|
|
@ -450,6 +450,7 @@ from hermes_cli.subcommands.dump import build_dump_parser
|
|||
from hermes_cli.subcommands.debug import build_debug_parser
|
||||
from hermes_cli.subcommands.backup import build_backup_parser
|
||||
from hermes_cli.subcommands.import_cmd import build_import_cmd_parser
|
||||
from hermes_cli.subcommands.import_agent import build_import_agent_parser
|
||||
from hermes_cli.subcommands.config import build_config_parser
|
||||
from hermes_cli.subcommands.skin import build_skin_parser
|
||||
from hermes_cli.subcommands.console import build_console_parser
|
||||
|
|
@ -15425,7 +15426,7 @@ _BUILTIN_SUBCOMMANDS = frozenset(
|
|||
"acp", "approvals", "auth", "backup", "bundles", "checkpoints", "claw", "completion",
|
||||
"computer-use",
|
||||
"config", "console", "cron", "curator", "dashboard", "serve", "debug", "doctor",
|
||||
"dump", "egress", "fallback", "gateway", "hooks", "import", "insights",
|
||||
"dump", "egress", "fallback", "gateway", "hooks", "import", "import-agent", "insights",
|
||||
"gui", "desktop", "kanban", "login", "logout", "logs", "lsp", "mcp", "memory", "migrate", "moa",
|
||||
"journey", "memory-graph", "learning",
|
||||
"model", "pairing", "pets", "plugins", "portal", "profile",
|
||||
|
|
@ -16337,6 +16338,15 @@ def main():
|
|||
# =========================================================================
|
||||
build_import_cmd_parser(subparsers, cmd_import=cmd_import)
|
||||
|
||||
# =========================================================================
|
||||
# import-agent command (parser: hermes_cli/subcommands/import_agent.py)
|
||||
# =========================================================================
|
||||
def cmd_import_agent(args):
|
||||
from hermes_cli.agent_import import import_agent_command
|
||||
import_agent_command(args)
|
||||
|
||||
build_import_agent_parser(subparsers, cmd_import_agent=cmd_import_agent)
|
||||
|
||||
# =========================================================================
|
||||
# config command (parser built in hermes_cli/subcommands/config.py)
|
||||
# =========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue