Replace the mk_config with a sample minimal cnfvar templates module
authorPlamen Dimitrov <plamen.dimitrov@intra2net.com>
Tue, 5 Apr 2022 03:29:01 +0000 (06:29 +0300)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 19 May 2022 09:13:27 +0000 (11:13 +0200)
commitb5abc93acace9a248ebc891229bb04146ae91237
tree892970a340537c59c3d8b39201f35adc38aa0ade
parentfd562d9b0778379274c7444fc159444ad04ac57f
Replace the mk_config with a sample minimal cnfvar templates module

The following commit provides an example for turning the partially
developed (and always incomplete for new use cases) mk_config functions
into ones that only provide a minimal set of defaults and can still
be used as one-liners by client/user code. The example implementation
at the moment is for a simple and a user template cnfvars and will
later on be extended to groups and all other major cnfvars.
src/cnfvar/__init__.py
src/cnfvar/templates.py [moved from src/mk_config.py with 88% similarity]