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