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