Skip to content

The agent that grows with you

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

Noah Leecd3f9b64dec9
diff --git a/hermes_cli/skills_hub.py b/hermes_cli/skills_hub.py
index 295248f6fde..28fbf5d81f5 100644
--- a/hermes_cli/skills_hub.py
+++ b/hermes_cli/skills_hub.py
@@ -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))
diff --git a/hermes_cli/subcommands/skills.py b/hermes_cli/subcommands/skills.py
index 6c2aa85d22d..cfcc677f18c 100644
--- a/hermes_cli/subcommands/skills.py
+++ b/hermes_cli/subcommands/skills.py
@@ -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",