Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Property Plugin #701

Closed
5 tasks
markus2330 opened this issue May 7, 2016 · 1 comment
Closed
5 tasks

Property Plugin #701

markus2330 opened this issue May 7, 2016 · 1 comment

Comments

@markus2330
Copy link
Contributor

markus2330 commented May 7, 2016

Hello newcomer,

Thus simpleini uses glibc specific features a replacement should be written.

As initial version it is enough if it writes out/parses every configuration option in the format path/to/key = value. Later you can add support for comments, ordering and configurable separators (instead of / and =).

To achieve this, you have to create a new plugin (see https://github.com/ElektraInitiative/libelektra/blob/master/doc/tutorials/plugins.md ). You only have to implement kdbGet and kdbSet.

To complete the task, please:

  • implement as described above
  • fully fill out README.md. For tricky parts (provides, placements) you can peek into the READMEs of other storage plugins.
  • handle all errors (also peek in other storage plugins what to do on I/O errors)
  • add unit tests demonstrating that a file read and written again stays the same (you guessed it, other storage plugins do the same)
  • remove not needed parts of template (open, close, error)

You do not need to escape the key or value, this should be handled by the rename and code plugins.

Please write something below before starting the task. You can always ask here for help.

@markus2330
Copy link
Contributor Author

mini was already implemented by @sanssecours

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant