Dumb Program to store simple Key-Value notes on persistent storage. Integrates with your command line pipeline so you can pull/store values at any time.
go get -u github.com/st0le/kv
go build
You can invoke kv
in 4 modes. Ideally copy the binary into a location that is in your PATH.
-
list all keys
kv
-
get a single key
kv <key>
-
set a value
kv <key> <value>
-
pipe contents to a key
echo test | kv <key>
The values are stored in files named by the key in $HOME\.kv
. Of course, keys will be unique. Files are not encrypted, I wouldn't use it for anything sensitive like your password, apikeys, etc
Use
New-Alias -Name kv -Value "kv.exe"
To avoid typing ".\kv.exe" each time.
* Deleting key-value. Current workaround, just delete the files from the `.kv` directory.
* `kv -` should denote the "last used key". Should let you use kv like a clipboard.