(filter scanFilter, hasInstallMetadata bool)
| 378 | } |
| 379 | |
| 380 | func 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 | |
| 391 | func parseInstalledSkill(data []byte, name, dir string, agentHostIDs []string, scope string) (listedSkill, bool) { |
| 392 | s := listedSkill{ |
no outgoing calls
no test coverage detected