Super simple file based Key-Value command line tool that works with concurrent R/W operations.
kvf set /path/to/file.kv KEY_ONE value
kvf set /path/to/file.kv KEY_TWO "value with spaces"
kvf get /path/to/file.kv KEY_ONE
kvf get /path/to/file.kv KEY_TWOOutput
value⏎ value with spaces⏎
|
Note
|
The keys are case-sensitive. |
The value from last file in which the key is found will be returned.
Set different values for two files
kvf set .env APP_ENV prod
kvf set .env.local APP_ENV devGet the value from first and second file in that order
kvf get .env .env.local APP_ENVOutput
dev⏎
The syntax of the supported file is mostly compatible with .env files syntax.
# Comments key=value key = value key="value" key='value'