MCPcopy Index your code
hub / github.com/cli/cli / hasInstallMetadata

Function hasInstallMetadata

pkg/cmd/skills/list/list.go:447–458  ·  view source on GitHub ↗
(meta map[string]interface{})

Source from the content-addressed store, hash-verified

445}
446
447func hasInstallMetadata(meta map[string]interface{}) bool {
448 for _, key := range []string{"github-repo", "github-ref", "github-tree-sha", "github-path", "github-pinned", "local-path"} {
449 value, ok := meta[key]
450 if !ok {
451 continue
452 }
453 if str, ok := value.(string); !ok || strings.TrimSpace(str) != "" {
454 return true
455 }
456 }
457 return false
458}
459
460func skillNameFromSourcePath(sourcePath string) string {
461 sourcePath = strings.TrimSuffix(sourcePath, "/SKILL.md")

Callers 1

parseInstalledSkillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected