Elektra  0.8.23
Plugin: boolean

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

Example

1 # Mount plugin
2 kdb mount config.ecf user/examples/boolean dump boolean
3 
4 # By default the plugin uses `1` (true) and `0` (false) to represent boolean values
5 kdb set user/examples/boolean/truthiness false
6 kdb setmeta user/examples/boolean/truthiness type boolean
7 kdb get user/examples/boolean/truthiness
8 #> 0
9 
10 # The plugin does not change ordinary values
11 kdb set user/examples/boolean/key value
12 kdb get user/examples/boolean/key
13 #> value
14 
15 # Undo changes
16 kdb rm -r user/examples/boolean
17 kdb umount user/examples/boolean

Configuration