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

Function WithName

pkg/devspace/context/values/values.go:79–81  ·  view source on GitHub ↗

WithName returns a copy of parent in which the devspace name value is set

(parent context.Context, name string)

Source from the content-addressed store, hash-verified

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 {
80 return WithValue(parent, nameKey, name)
81}
82
83// NameFrom returns the name of the devspace config
84func NameFrom(ctx context.Context) (string, bool) {

Callers 1

LoadWithParserMethod · 0.92

Calls 1

WithValueFunction · 0.85

Tested by

no test coverage detected