Skip to content

Commit

Permalink
update outdated infos in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Jan 25, 2024
1 parent 3d584ab commit c477c58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 13 additions & 1 deletion extensions/bitwarden.sh
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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: [
Expand Down
4 changes: 0 additions & 4 deletions www/website/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ export default defineConfig({
text: "Action",
link: "/docs/reference/schemas/action",
},
{
text: "Input",
link: "/docs/reference/schemas/input",
},
],
},
{
Expand Down

0 comments on commit c477c58

Please sign in to comment.