MCPcopy Create free account
hub / github.com/compozy/agh / newSkillCommand

Function newSkillCommand

internal/cli/skill_commands.go:25–43  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

23)
24
25func newSkillCommand(deps commandDeps) *cobra.Command {
26 cmd := &cobra.Command{
27 Use: skillCommandsSkillKey,
28 Short: "Manage local AgentSkills",
29 }
30
31 cmd.AddCommand(newSkillListCommand(deps))
32 cmd.AddCommand(newSkillViewCommand(deps))
33 cmd.AddCommand(newSkillInfoCommand(deps))
34 cmd.AddCommand(newSkillWhereCommand(deps))
35 cmd.AddCommand(newSkillSearchCommand(deps))
36 cmd.AddCommand(newSkillInstallCommand(deps))
37 cmd.AddCommand(newSkillRemoveCommand(deps))
38 cmd.AddCommand(newSkillUpdateCommand(deps))
39 cmd.AddCommand(newSkillCreateCommand(deps))
40 cmd.AddCommand(newSkillEnableCommand(deps))
41 cmd.AddCommand(newSkillDisableCommand(deps))
42 return cmd
43}
44
45func newSkillListCommand(deps commandDeps) *cobra.Command {
46 var sourceFilter string

Callers 1

newRootCommandFunction · 0.85

Calls 11

newSkillListCommandFunction · 0.85
newSkillViewCommandFunction · 0.85
newSkillInfoCommandFunction · 0.85
newSkillWhereCommandFunction · 0.85
newSkillSearchCommandFunction · 0.85
newSkillInstallCommandFunction · 0.85
newSkillRemoveCommandFunction · 0.85
newSkillUpdateCommandFunction · 0.85
newSkillCreateCommandFunction · 0.85
newSkillEnableCommandFunction · 0.85
newSkillDisableCommandFunction · 0.85

Tested by

no test coverage detected