Elektra  0.9.0
Plugin: boolean

This plugin is obsolete: Please use the type plugin instead.

Different configurations might use different values for TRUE/FALSE. The boolean plugin canonicalizes boolean values.

Example

# Mount plugin
sudo kdb mount config.ecf user/tests/boolean dump boolean
# By default the plugin uses `1` (true) and `0` (false) to represent boolean values
kdb set user/tests/boolean/truthiness false
kdb setmeta user/tests/boolean/truthiness type boolean
kdb get user/tests/boolean/truthiness
#> 0
# The plugin does not change ordinary values
kdb set user/tests/boolean/key value
kdb get user/tests/boolean/key
#> value
# Undo changes
kdb rm -r user/tests/boolean
sudo kdb umount user/tests/boolean

Configuration