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

Function selectedScopes

pkg/cmd/skills/list/list.go:282–287  ·  view source on GitHub ↗
(scope string)

Source from the content-addressed store, hash-verified

280}
281
282func selectedScopes(scope string) []registry.Scope {
283 if scope != "" {
284 return []registry.Scope{registry.Scope(scope)}
285 }
286 return []registry.Scope{registry.ScopeProject, registry.ScopeUser}
287}
288
289func appendAgentHostID(agentHostIDs []string, agentHostID string) []string {
290 if slices.Contains(agentHostIDs, agentHostID) {

Callers 1

buildScanTargetsFunction · 0.85

Calls 1

ScopeTypeAlias · 0.92

Tested by

no test coverage detected