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

Function shouldIncludeSkill

pkg/cmd/skills/list/list.go:380–389  ·  view source on GitHub ↗
(filter scanFilter, hasInstallMetadata bool)

Source from the content-addressed store, hash-verified

378}
379
380func shouldIncludeSkill(filter scanFilter, hasInstallMetadata bool) bool {
381 switch filter {
382 case scanInstalledOnly:
383 return hasInstallMetadata
384 case scanPublishedOnly:
385 return !hasInstallMetadata
386 default:
387 return true
388 }
389}
390
391func parseInstalledSkill(data []byte, name, dir string, agentHostIDs []string, scope string) (listedSkill, bool) {
392 s := listedSkill{

Callers 1

scanInstalledSkillsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected