From 7305e5509afa54eae8496611732f172f891e3b9a Mon Sep 17 00:00:00 2001 From: bellman Date: Fri, 5 Jun 2026 10:23:36 +0900 Subject: [PATCH] fix: update skills help test assertions for --project flag (#95 CI fix) Updated the agents_and_skills_usage_support_help_and_unexpected_args test to match the new skills help text that includes [--project]. Generated with https://github.com/Yeachan-Heo/gajae-code Co-authored-by: Gajae Code --- rust/crates/commands/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rust/crates/commands/src/lib.rs b/rust/crates/commands/src/lib.rs index e1c7e4f7..7cc7fa3f 100644 --- a/rust/crates/commands/src/lib.rs +++ b/rust/crates/commands/src/lib.rs @@ -6625,12 +6625,13 @@ mod tests { let skills_help = super::handle_skills_slash_command(Some("--help"), &cwd).expect("skills help"); assert!(skills_help.contains( - "Usage /skills [list|show |install |uninstall |help| [args]]" + "Usage /skills [list|show |install [--project] |uninstall |help| [args]]" )); assert!(skills_help.contains("Alias /skill")); assert!(skills_help.contains("Lifecycle install , uninstall ")); assert!(skills_help.contains("Invoke /skills help overview -> $help overview")); - assert!(skills_help.contains("Install root $CLAW_CONFIG_HOME/skills or ~/.claw/skills")); + // #95: install root now mentions --project flag + assert!(skills_help.contains("Install root $CLAW_CONFIG_HOME/skills or ~/.claw/skills (use --project for .claw/skills)")); assert!(skills_help.contains(".omc/skills")); assert!(skills_help.contains(".agents/skills")); assert!(skills_help.contains("~/.claude/skills/omc-learned")); @@ -6643,7 +6644,7 @@ mod tests { let skills_install_help = super::handle_skills_slash_command(Some("install --help"), &cwd) .expect("nested skills help"); assert!(skills_install_help.contains( - "Usage /skills [list|show |install |uninstall |help| [args]]" + "Usage /skills [list|show |install [--project] |uninstall |help| [args]]" )); assert!(skills_install_help.contains("Alias /skill")); assert!(skills_install_help.contains("Unexpected install")); @@ -6651,7 +6652,7 @@ mod tests { let skills_unknown_help = super::handle_skills_slash_command(Some("show --help"), &cwd).expect("skills help"); assert!(skills_unknown_help.contains( - "Usage /skills [list|show |install |uninstall |help| [args]]" + "Usage /skills [list|show |install [--project] |uninstall |help| [args]]" )); assert!(skills_unknown_help.contains("Unexpected show"));