Re:Cue, an open-source data validation language
by throwaway894345 on Tuesday June 15, 2021 @11:21AM
(#27516783)
Here's a simplified example for configuring GitHub Actions workflows: https://github.com/cuelang/cue/discussions/967
FWIW, I'm not looking for "inheritance".
Re:Cue, an open-source data validation language
by GordonS on Tuesday June 15, 2021 @11:10AM
(#27516628)
> You can set up a generic config with default values for everything, and then have more specific configs that override the defaults.
I was going to say the same thing - this pattern of having an "override" file in add to defaults, is something I've seen in multiple systems and liked. For example, it's used for JSON configuration in .NET, and with Docker Compose's YAML service configuration files.
This specifically looks like you want inheritance, which Cue eschews.
You can set up a generic config with default values for everything, and then have more specific configs that override the defaults.
A concrete example would help figure out if Cue can do what you want.