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

Function shouldListPublishedProjectSkills

pkg/cmd/skills/list/list.go:310–315  ·  view source on GitHub ↗
(agentID string, scopes []registry.Scope, gitRoot string)

Source from the content-addressed store, hash-verified

308}
309
310func shouldListPublishedProjectSkills(agentID string, scopes []registry.Scope, gitRoot string) bool {
311 if agentID != "" || gitRoot == "" {
312 return false
313 }
314 return slices.Contains(scopes, registry.ScopeProject)
315}
316
317func scanInstalledSkills(skillsDir string, agentHostIDs []string, scope string, filter scanFilter) ([]listedSkill, error) {
318 entries, err := os.ReadDir(skillsDir)

Callers 1

buildScanTargetsFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected