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

Function runSkillViewCommand

internal/cli/skill_commands.go:141–154  ·  view source on GitHub ↗
(cmd *cobra.Command, deps commandDeps, name string, filePath string)

Source from the content-addressed store, hash-verified

139}
140
141func runSkillViewCommand(cmd *cobra.Command, deps commandDeps, name string, filePath string) error {
142 skillName := strings.TrimSpace(name)
143 if skillName == "" {
144 return errors.New("skill name is required")
145 }
146 scope, err := resolveSkillCommandScope(cmd.Context(), cmd, deps, agentActionCLI("skill.view"))
147 if err != nil {
148 return err
149 }
150 if scope.useDaemon {
151 return runDaemonSkillViewCommand(cmd, deps, skillName, filePath, scope.query)
152 }
153 return runLocalSkillViewCommand(cmd, deps, skillName, filePath, scope.query.ForAgent)
154}
155
156func runDaemonSkillViewCommand(
157 cmd *cobra.Command,

Callers 1

newSkillViewCommandFunction · 0.85

Calls 4

resolveSkillCommandScopeFunction · 0.85
agentActionCLIFunction · 0.85
runLocalSkillViewCommandFunction · 0.85

Tested by

no test coverage detected