MCPcopy Create free account
hub / github.com/cli/cli / hasInstallMetadata

Function hasInstallMetadata

pkg/cmd/skills/list/list.go:441–452  ·  view source on GitHub ↗
(meta map[string]any)

Source from the content-addressed store, hash-verified

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

Callers 1

parseInstalledSkillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected