refactor(cli): dedupe the 3x --oneshot dispatch block and chat-arg defaults into helpers

_run_oneshot_from_args replaces three identical confirm+run_and_exit blocks
(main, fast chat, Termux fast cli); _default_to_chat reuses the existing
_set_chat_arg_defaults instead of a second attr table. Also restores the
'bare hermes profile' note as _profile_status's docstring.
This commit is contained in:
Teknium
2026-09-02 11:58:59 -07:00
parent ed8aa5e3e4
commit 64f301dfc0
2 changed files with 23 additions and 43 deletions
+1
View File
@@ -82,6 +82,7 @@ def _render_distribution_plan(plan) -> None:
def _profile_status(args):
"""Bare ``hermes profile`` — show current profile status."""
from hermes_constants import display_hermes_home
from hermes_cli.profiles import (
get_active_profile_name,