MCPcopy Index your code
hub / github.com/devspace-sh/devspace / deletePathFromState

Function deletePathFromState

helper/server/downstream.go:408–414  ·  view source on GitHub ↗
(state map[string]*remote.Change, path string)

Source from the content-addressed store, hash-verified

406}
407
408func deletePathFromState(state map[string]*remote.Change, path string) {
409 for k := range state {
410 if strings.HasPrefix(k, path+"/") || k == path {
411 delete(state, k)
412 }
413 }
414}
415
416func copyState(state map[string]*remote.Change) map[string]*remote.Change {
417 newState := make(map[string]*remote.Change, len(state))

Callers 1

applyChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected