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

Function matchAnyPattern

pkg/cmd/run/download/download.go:238–245  ·  view source on GitHub ↗
(patterns []string, name string)

Source from the content-addressed store, hash-verified

236}
237
238func matchAnyPattern(patterns []string, name string) bool {
239 for _, p := range patterns {
240 if isMatch, err := filepath.Match(p, name); err == nil && isMatch {
241 return true
242 }
243 }
244 return false
245}

Callers 1

runDownloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected