kv/contrib/kv.nu

26 lines
573 B
Plaintext
Raw Normal View History

def keys [] {
^kv list | lines | each { |line| $line | str trim }
}
export extern "kv get" [
key: string@keys # Key
--store(-s) # Use a specific store instead of aggregate
]
export extern "kv set" [
key: string # Key
value: string # Value
...value: string # Value cont.
--store(-s) # Store for this key/value
]
export extern "kv del" [
key: string@keys # Key
--store(-s) # Store for this key/value
]
export extern "kv list" [
prefix?: string # Key prefix filter
--store(-s) # Use a specific store instead of aggregate
]