moban icon indicating copy to clipboard operation
moban copied to clipboard

Layered variables

Open jayvdb opened this issue 5 years ago • 4 comments

Currently all variables are merged immediately.

Each set of data should be kept in separate dictionaries and layered on top of each other, so that dict read of the top level merges the values at runtime (and has an lru cache).

Then it is possible to read each config , and combined them in different groups as needed for https://github.com/moremoban/moban/issues/126

i.e. two targets should be able to use the same config files and combined them in different merge-order.

This also allows disabling env-vars for some targets, but keeping them for others.

jayvdb avatar Jul 19 '19 09:07 jayvdb