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

Function runLocalSkillXMLViewCommand

internal/cli/skill_commands.go:232–253  ·  view source on GitHub ↗
(cmd *cobra.Command, ctx skillCommandContext, skill *skills.Skill)

Source from the content-addressed store, hash-verified

230}
231
232func runLocalSkillXMLViewCommand(cmd *cobra.Command, ctx skillCommandContext, skill *skills.Skill) error {
233 resources, err := listSkillResources(skill, ctx.bundledFS)
234 if err != nil {
235 return err
236 }
237 content, err := ctx.registry.LoadContent(cmd.Context(), skill)
238 if err != nil {
239 return err
240 }
241 rendered, err := renderSkillXML(skill, content, resources)
242 if err != nil {
243 return err
244 }
245 item := skillViewItem{
246 Name: skill.Meta.Name,
247 Source: skillSourceLabel(skill.Source),
248 Path: skill.FilePath,
249 Content: rendered,
250 Resources: resources,
251 }
252 return writeCommandOutput(cmd, skillViewBundle(item, rendered))
253}
254
255func newSkillInfoCommand(deps commandDeps) *cobra.Command {
256 var workspace string

Callers 1

runLocalSkillViewCommandFunction · 0.85

Calls 6

listSkillResourcesFunction · 0.85
renderSkillXMLFunction · 0.85
writeCommandOutputFunction · 0.85
skillViewBundleFunction · 0.85
skillSourceLabelFunction · 0.70
LoadContentMethod · 0.65

Tested by

no test coverage detected