Skip to content

RFC replaces directive to completely disable and replace another yml block #32

Open
@tractorcow

Description

@tractorcow

Given this config

---
Name: somecoreconfig
---
SomeClass:
  extensions:
    - SomeExtension
---
Name: myconfig
replaces: '#somecoreconfig'
---
SomeClass:
  extensions:
    - AnotherExtension

The "merged" config would only contain

SomeClass:
  extensions:
    - AnotherExtension

This would work similarly to before and after, but would only work with a single named block #somename.

Other blocks that are before / after the named block would not break, but the replacement would be substituted in place of the original in the original position.

You cannot use replaces with before / after

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions