diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/vlt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/vlt b/.local/bin/vlt index 32aea4d..92c2fda 100755 --- a/.local/bin/vlt +++ b/.local/bin/vlt @@ -291,6 +291,13 @@ edit_c() [ ! -t 2 ] && notify 'Category Edit' "The category ‘$c’ was renamed" } +raw() +{ + shift + enchive extract <"$VAULT" \ + | jq --arg c "$1" --arg n "$2" -r '.[$c] | .[$n]' +} + : ${VAULT_2FA:="2fa"} : ${VAULT_HOME:=${XDG_DATA_HOME:-$HOME/.local/share}/vault} readonly VAULT="${VAULT_HOME}/vault.sec" @@ -308,6 +315,9 @@ edit) get) get ;; +raw) + raw "$@" + ;; rm) rm_ "$@" ;; |