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

Function WithValue

pkg/devspace/context/values/values.go:74–76  ·  view source on GitHub ↗

WithValue returns a copy of parent in which the value associated with key is val.

(parent context.Context, key interface{}, val interface{})

Source from the content-addressed store, hash-verified

72
73// WithValue returns a copy of parent in which the value associated with key is val.
74func WithValue(parent context.Context, key interface{}, val interface{}) context.Context {
75 return context.WithValue(parent, key, val)
76}
77
78// WithName returns a copy of parent in which the devspace name value is set
79func WithName(parent context.Context, name string) context.Context {

Callers 7

WithFlagsMapFunction · 0.85
WithCommandFlagsFunction · 0.85
WithDevContextFunction · 0.85
WithRootNameFunction · 0.85
WithNameFunction · 0.85
WithTempFolderFunction · 0.85
WithDependencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected