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

Function appendAgentHostID

pkg/cmd/skills/list/list.go:289–294  ·  view source on GitHub ↗
(agentHostIDs []string, agentHostID string)

Source from the content-addressed store, hash-verified

287}
288
289func appendAgentHostID(agentHostIDs []string, agentHostID string) []string {
290 if slices.Contains(agentHostIDs, agentHostID) {
291 return agentHostIDs
292 }
293 return append(agentHostIDs, agentHostID)
294}
295
296func scanFilterForAgentHost(agentHost *registry.AgentHost, scope registry.Scope) scanFilter {
297 if scope == registry.ScopeProject && agentHost.ProjectDir == "skills" {

Callers 1

buildScanTargetsFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected