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

Function appendAgentHostID

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

Source from the content-addressed store, hash-verified

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

Callers 1

buildScanTargetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected