(ctx context.Context, originalRawConfig map[string]interface{}, rawConfig map[string]interface{}, resolver variable.Resolver, log log.Logger)
| 39 | type commandsPipelinesParser struct{} |
| 40 | |
| 41 | func (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 | |
| 51 | func NewCommandsParser() Parser { |
| 52 | return &commandsParser{} |
nothing calls this directly
no test coverage detected