3 ms·
You can do everything you describe with a regular function call. Introducing an unnecessary service for something as trivial as config management is even worse
by gizmo 4y ago
You can do everything you describe with a regular function call. Introducing an unnecessary service for something as trivial as config management is even worse than the broken Registry status quo.
- imtringued 4y agoIn theory all we need is a libconfig with a standardized interface and distro specific implementations. There would be two use cases, storing hierarchical/tree like data aka JSON, YAML, etc and arbitrary graph like data with complex references. The same could be done with the shell. libcli would be called to parse the command line arguments and your program will have an entry point that receives the parsed data. libcli could also be used to produce structured program outputs which then can be fed into applications, possibly skipping the serialisation deserialization steps. Since libcli will have a standard interface each distro can choose their own CLI format or whether they output their data as JSON or CBOR. In both cases the benefit is that the choice of the data storage mechanism has been decoupled from the application.
- rwmj 4y agoAugeas does this already: https://github.com/hercules-team/augeas https://github.com/hercules-team/augeas