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

Function selectedScopes

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

Source from the content-addressed store, hash-verified

279}
280
281func selectedScopes(scope string) []registry.Scope {
282 if scope != "" {
283 return []registry.Scope{registry.Scope(scope)}
284 }
285 return []registry.Scope{registry.ScopeProject, registry.ScopeUser}
286}
287
288func appendAgentHostID(agentHostIDs []string, agentHostID string) []string {
289 for _, existing := range agentHostIDs {

Callers 1

buildScanTargetsFunction · 0.85

Calls 1

ScopeTypeAlias · 0.92

Tested by

no test coverage detected