mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
18 lines
576 B
Python
18 lines
576 B
Python
"""``hermes console`` subcommand parser."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Callable
|
|
|
|
|
|
def build_console_parser(subparsers, *, cmd_console: Callable) -> None:
|
|
"""Attach the safe Hermes Console REPL subcommand."""
|
|
console_parser = subparsers.add_parser(
|
|
"console",
|
|
help="Open the safe Hermes command console",
|
|
description=(
|
|
"Open a curated Hermes command REPL. This is not a raw shell and "
|
|
"does not expose the full Hermes CLI."
|
|
),
|
|
)
|
|
console_parser.set_defaults(func=cmd_console)
|