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

Function WithDependency

pkg/devspace/context/values/values.go:100–102  ·  view source on GitHub ↗
(parent context.Context, dependency bool)

Source from the content-addressed store, hash-verified

98}
99
100func WithDependency(parent context.Context, dependency bool) context.Context {
101 return WithValue(parent, dependencyKey, dependency)
102}
103
104func IsDependencyFrom(ctx context.Context) (bool, bool) {
105 isDependency, ok := ctx.Value(dependencyKey).(bool)

Callers 1

StartNewDependenciesMethod · 0.92

Calls 1

WithValueFunction · 0.85

Tested by

no test coverage detected