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

Method Parse

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

55type commandsParser struct{}
56
57func (c *commandsParser) Parse(ctx context.Context, originalRawConfig map[string]interface{}, rawConfig map[string]interface{}, resolver variable.Resolver, log log.Logger) (*latest.Config, map[string]interface{}, error) {
58 // modify the config
59 preparedConfig, err := versions.Get(rawConfig, "commands")
60 if err != nil {
61 return nil, nil, err
62 }
63
64 return fillVariablesExcludeAndParse(ctx, resolver, preparedConfig, log)
65}
66
67func NewProfilesParser() Parser {
68 return &profilesParser{}

Callers

nothing calls this directly

Calls 2

GetFunction · 0.92

Tested by

no test coverage detected