MCPcopy Create free account
hub / github.com/devspace-sh/devspace / filterProfileParents

Function filterProfileParents

pkg/devspace/config/versions/versions.go:336–342  ·  view source on GitHub ↗
(profileParents []string)

Source from the content-addressed store, hash-verified

334}
335
336func filterProfileParents(profileParents []string) []string {
337 return util.Filter(profileParents, func(oidx int, os string) bool {
338 return !util.Contains(profileParents, func(iidx int, is string) bool {
339 return os == is
340 }, oidx+1)
341 })
342}
343
344func sanitizeMatchExpression(expression string) string {
345 exp := strings.TrimPrefix(expression, "^")

Callers 1

ParseProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected