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

Method Parse

cmd/root.go:372–388  ·  view source on GitHub ↗
(
	ctx context.Context,
	originalRawConfig map[string]interface{},
	rawConfig map[string]interface{},
	resolver variable.Resolver,
	log log.Logger,
)

Source from the content-addressed store, hash-verified

370}
371
372func (r *RawConfig) Parse(
373 ctx context.Context,
374 originalRawConfig map[string]interface{},
375 rawConfig map[string]interface{},
376 resolver variable.Resolver,
377 log log.Logger,
378) (*latest.Config, map[string]interface{}, error) {
379 r.Ctx = ctx
380 r.OriginalRawConfig = originalRawConfig
381 r.RawConfig = rawConfig
382 r.Resolver = resolver
383
384 // try parsing commands
385 latestConfig, beforeConversion, err := loader.NewCommandsPipelinesParser().Parse(ctx, originalRawConfig, rawConfig, resolver, log)
386 r.Config = latestConfig
387 return latestConfig, beforeConversion, err
388}
389
390func (r *RawConfig) GetEnv(name string) string {
391 // try to get from environment

Callers

nothing calls this directly

Calls 2

ParseMethod · 0.65

Tested by

no test coverage detected