$darkmode
Elektra 0.11.0
Plugin: simpleini

This plugin reads and writes files written in a basic line-oriented ini-like format. It is very simplistic without sections, the toml plugin and for specifications the ni plugin should be preferred. Since the simpleini plugin requires the GNU C library it will not work on operating systems that use another C library such as macOS.

Usage

It is quite suitable to export configuration if you want line-by-line key, value pairs without sections or metadata. (Thus +3000 in status)

1 kdb export system:/samba simpleini

Configuration

The only parameter simpleini supports is format which allows you to change the syntax of individual lines. The format is a string with any characters where only % has special meaning:

The default is % = %.

For example, if you want every key to be marked %:key value you would use:

1 kdb export -c "format=%%:% %" system:/samba simpleini
2 #> %:key value
3 #> %:key2 value2

Restrictions

Examples

Mount the plugin:

1 kdb mount -d /etc/samba/smb.conf system:/samba ccode simpleini

Limitations