blurstudio / hab

A application environment and launcher
GNU Lesser General Public License v3.0
25 stars 3 forks source link

[Request]: Allow a config to inherit from arbitrary URI #22

Open MHendricks opened 1 year ago

MHendricks commented 1 year ago

Description

Add the ability to inherit from another URI, instead of the direct parent of this configuration.

Solution

The inherits property of configs can take a bool or a string. If a string is passed it is a uri that it inherits from.

{
    "name": "Thug",
    "context": ["project_a"],
    "inherits": "project_a/master_asset",
}

Then project_a/Thug would automatically have the same settings as project_a/master_asset.

Additional Context

No response