You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 16, 2025. It is now read-only.
Elektra's goal is to integrate current forms of configuration files. The best way to integrate them is to use ready-made parsers, then Elektra uses exactly the same code to access configuration files as the application. Some ideas for such libraries (random order):
in kdbGet you first you look into the string of the parentKey and open the configuration file of this name. Then you iterate over all keys you get from the library and transform them into a keyset.
in kdbSet you do the opposite: you iterate over the keyset and feed it to the library. Again you use the string of the parentKey to know where to write the content to.
Hello newcomer,
Elektra's goal is to integrate current forms of configuration files. The best way to integrate them is to use ready-made parsers, then Elektra uses exactly the same code to access configuration files as the application. Some ideas for such libraries (random order):
You should prefer to pick the ones you are familar with, which are popular, are well maintained, and provide a easy-to-use API.
To get support for a new file format with a new parser, you have to create a new plugin (see https://github.com/ElektraInitiative/libelektra/blob/master/doc/tutorials/plugins.md and https://github.com/ElektraInitiative/libelektra/blob/master/doc/tutorials/storage-plugins.md). You only have to implement kdbGet and kdbSet:
A Plugin that already does exactly this are https://tree.libelektra.org/src/plugins/ni (you can ignore metakey and metavalue for a first step)
To complete the task, please:
Please write something below before starting the task. You can always ask here for help.