Elektra
0.8.26
|
See the validation tutorial for introduction. This plugin provides a conceptual simplistic specification language.
It currently supports to specify:
*
)The plugin demonstrates how simple a configuration specification can be within the Elektra framework. It is conceptual and mainly for educational usage. You can base your plugins
/keyword/enum
, default enum
: used as keywords for enum definitions./keyword/assign
, default =
: used as keywords for assignment.Configuration within the specification language:
mountpoint <filename>
: defines a file-name for kdb spec-mount
plugins <pluginspec>
: defines list of plugins for kdb spec-mount
First you need to mount the plugin to spec, e.g.:
Then you can write your specification (with default keywords):
And finally you need a specification mount, so that all necessary plugins are present:
Also make sure that spec
is mounted as global plugin:
Then you are only able to write valid keys: