Skip to content

Commit d019de8

Browse files
committed
Change the skill subcommand to install skill subcommand for CLI
1 parent 54710b4 commit d019de8

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var builtinCommands = map[string]bool{
2727
"init": true,
2828
"help": true,
2929
"completion": true,
30-
"skill": true,
30+
"install": true,
3131
}
3232

3333
func Execute() error {

cmd/skill.go

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,17 @@ const skillDirName = "clime-cli"
1818
const skillFileName = "SKILL.md"
1919

2020
func init() {
21-
skillCmd.AddCommand(skillInstallCmd)
22-
rootCmd.AddCommand(skillCmd)
21+
installCmd.AddCommand(installSkillCmd)
22+
rootCmd.AddCommand(installCmd)
2323
}
2424

25-
var skillCmd = &cobra.Command{
26-
Use: "skill",
27-
Short: "Display or install the clime skill for AI agents",
28-
RunE: func(cmd *cobra.Command, args []string) error {
29-
fmt.Print(SkillContent)
30-
return nil
31-
},
25+
var installCmd = &cobra.Command{
26+
Use: "install",
27+
Short: "Install clime components",
3228
}
3329

34-
var skillInstallCmd = &cobra.Command{
35-
Use: "install",
30+
var installSkillCmd = &cobra.Command{
31+
Use: "skill",
3632
Short: "Install the clime-cli skill into ~/.claude/skills and ~/.codex/skills",
3733
RunE: func(cmd *cobra.Command, args []string) error {
3834
home, err := os.UserHomeDir()

0 commit comments

Comments
 (0)