MCPcopy
hub / github.com/kubernetes/kubectl / hasValidPrefix

Function hasValidPrefix

pkg/cmd/plugin/plugin.go:287–295  ·  view source on GitHub ↗
(filepath string, validPrefixes []string)

Source from the content-addressed store, hash-verified

285}
286
287func hasValidPrefix(filepath string, validPrefixes []string) bool {
288 for _, prefix := range validPrefixes {
289 if !strings.HasPrefix(filepath, prefix+"-") {
290 continue
291 }
292 return true
293 }
294 return false
295}

Callers 1

ListPluginsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…