Elektra  0.8.22
Plugin: boolean

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

Example

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

Configuration