(ctx context.Context, originalRawConfig map[string]interface{}, rawConfig map[string]interface{}, resolver variable.Resolver, log log.Logger)
| 55 | type commandsParser struct{} |
| 56 | |
| 57 | func (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 | |
| 67 | func NewProfilesParser() Parser { |
| 68 | return &profilesParser{} |
nothing calls this directly
no test coverage detected