diff --git a/extensions/bitwarden.sh b/extensions/bitwarden.sh index b840fbf1..8703c648 100755 --- a/extensions/bitwarden.sh +++ b/extensions/bitwarden.sh @@ -1,5 +1,17 @@ #!/bin/sh +# check if jq is installed +if ! [ -x "$(command -v jq)" ]; then + echo "jq is not installed. Please install it." >&2 + exit 1 +fi + +# check if bkt is installed +if ! [ -x "$(command -v bkt)" ]; then + echo "bkt is not installed. Please install it." >&2 + exit 1 +fi + if [ $# -eq 0 ]; then jq -n '{ title: "Bitwarden Vault", @@ -30,7 +42,7 @@ fi COMMAND=$(echo "$1" | jq -r '.command') if [ "$COMMAND" = "list-passwords" ]; then - bw --nointeraction list items --session "$BW_SESSION" | jq 'map({ + bkt --ttl=1d -- bw --nointeraction list items --session "$BW_SESSION" | jq 'map({ title: .name, subtitle: (.login.username // ""), actions: [ diff --git a/www/website/.vitepress/config.mts b/www/website/.vitepress/config.mts index 6066fe55..255bca6d 100644 --- a/www/website/.vitepress/config.mts +++ b/www/website/.vitepress/config.mts @@ -130,10 +130,6 @@ export default defineConfig({ text: "Action", link: "/docs/reference/schemas/action", }, - { - text: "Input", - link: "/docs/reference/schemas/input", - }, ], }, {