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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user