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

Function shouldListPublishedProjectSkills

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

Source from the content-addressed store, hash-verified

309}
310
311func shouldListPublishedProjectSkills(agentID string, scopes []registry.Scope, gitRoot string) bool {
312 if agentID != "" || gitRoot == "" {
313 return false
314 }
315 for _, scope := range scopes {
316 if scope == registry.ScopeProject {
317 return true
318 }
319 }
320 return false
321}
322
323func scanInstalledSkills(skillsDir string, agentHostIDs []string, scope string, filter scanFilter) ([]listedSkill, error) {
324 entries, err := os.ReadDir(skillsDir)

Callers 1

buildScanTargetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected