feat(skills): add --yes/-y flag to hermes skills uninstall

`do_uninstall` already accepted a `skip_confirm` parameter and the
slash-command handler already passed `skip_confirm=True`, but the CLI
argparse path never exposed a flag to reach it. This adds `--yes`/`-y`
to `hermes skills uninstall`, matching the existing pattern on `install`
and `reset`.
This commit is contained in:
Noah Lee
2026-06-30 14:37:50 +09:00
committed by Teknium
parent 00888e80ac
commit cd3f9b64de
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1835,7 +1835,7 @@ def skills_command(args) -> None:
do_audit(name=getattr(args, "name", None),
deep=getattr(args, "deep", False))
elif action == "uninstall":
do_uninstall(args.name)
do_uninstall(args.name, skip_confirm=getattr(args, "yes", False))
elif action == "reset":
do_reset(args.name, restore=getattr(args, "restore", False),
skip_confirm=getattr(args, "yes", False))
+6
View File
@@ -182,6 +182,12 @@ def build_skills_parser(subparsers, *, cmd_skills: Callable) -> None:
"uninstall", help="Remove a hub-installed skill"
)
skills_uninstall.add_argument("name", help="Skill name to remove")
skills_uninstall.add_argument(
"--yes",
"-y",
action="store_true",
help="Skip confirmation prompt",
)
skills_reset = skills_subparsers.add_parser(
"reset",