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

Function WithFlagsMap

pkg/devspace/context/values/values.go:24–26  ·  view source on GitHub ↗

WithFlagsMap creates a new context with the given flags

(parent context.Context, flagsMap map[string]string)

Source from the content-addressed store, hash-verified

22
23// WithFlagsMap creates a new context with the given flags
24func WithFlagsMap(parent context.Context, flagsMap map[string]string) context.Context {
25 return WithValue(parent, flagsKey, flagsMap)
26}
27
28// WithCommandFlags creates a new context with the given flags
29func WithCommandFlags(parent context.Context, flagSet *flag.FlagSet) context.Context {

Callers 2

applyFlagsFunction · 0.92
pipelines.goFile · 0.92

Calls 1

WithValueFunction · 0.85

Tested by

no test coverage detected