MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Parse

Method Parse

pkg/devspace/config/loader/parser.go:41–49  ·  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

39type commandsPipelinesParser struct{}
40
41func (c *commandsPipelinesParser) Parse(ctx context.Context, originalRawConfig map[string]interface{}, rawConfig map[string]interface{}, resolver variable.Resolver, log log.Logger) (*latest.Config, map[string]interface{}, error) {
42 // modify the config
43 preparedConfig, err := versions.Get(rawConfig, "commands", "pipelines")
44 if err != nil {
45 return nil, nil, err
46 }
47
48 return fillVariablesExcludeAndParse(ctx, resolver, preparedConfig, log)
49}
50
51func NewCommandsParser() Parser {
52 return &commandsParser{}

Callers

nothing calls this directly

Calls 2

GetFunction · 0.92

Tested by

no test coverage detected