3 ms·
> I want to be able to write a "generic environment" module for each application and then parameterize it accordingly for each environment. This specifically l
by Kinrany 5y ago
> I want to be able to write a "generic environment" module for each application and then parameterize it accordingly for each environment.
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.
- GordonS 5y ago> 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.
- throwaway894345 5y agoHere's a simplified example for configuring GitHub Actions workflows: https://github.com/cuelang/cue/discussions/967 https://github.com/cuelang/cue/discussions/967 FWIW, I'm not looking for "inheritance".