This commit is contained in:
Jesse Bannon 2022-09-01 09:52:18 -07:00
parent 99afe9a998
commit 963f0099be

View file

@ -157,6 +157,8 @@ Presets support inheritance by defining a parent preset:
.. code-block:: yaml .. code-block:: yaml
presets: presets:
custom_preset:
...
parent_preset: parent_preset:
... ...
child_preset: child_preset:
@ -166,6 +168,19 @@ In the example above, ``child_preset`` inherits all fields defined in ``parent_p
It is advantageous to use parent presets where possible to reduce duplicate yaml It is advantageous to use parent presets where possible to reduce duplicate yaml
definitions. definitions.
Presets also support inheritance from multiple presets:
.. code-block:: yaml
child_preset:
preset:
- "custom_preset"
- "parent_preset"
In this example, ``child_preset`` will inherit all fields from ``custom_preset``
and ``parent_preset`` in that order. The bottom-most preset has the highest
priority.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------