Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ isProvidedRepoValid
Function
isProvidedRepoValid
pkg/cmd/attestation/verify/options.go:100–104 ·
view source on GitHub ↗
(repo string)
Source
from the content-addressed store, hash-verified
98
}
99
100
func
isProvidedRepoValid(repo string) bool {
101
// we expect a provided repository argument be in the format <OWNER>/<REPO>
102
splitRepo := strings.Split(repo,
"/"
)
103
return
len(splitRepo) == 2
104
}
Callers
1
AreFlagsValid
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected