feat: nushell completions
ci/woodpecker/push/goreleaser Pipeline was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-05-23 09:42:15 -05:00
parent 0b81160c3c
commit bc07bf116e
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 21 additions and 0 deletions

21
contrib/kv.nu 100644
View File

@ -0,0 +1,21 @@
def keys [] {
^kv list | lines | each { |line| $line | str trim }
}
export extern "kv get" [
key: string@keys # Key
]
export extern "kv set" [
key: string # Key
value: string # Value
...value: string # Value cont.
]
export extern "kv del" [
key: string@keys #Key
]
export extern "kv list" [
prefix?: string # Key prefix filter
]