From fc73363d7f89a7da352e740f151ec5f84a96f07a Mon Sep 17 00:00:00 2001 From: Arvid Bjurklint Date: Sat, 3 Aug 2024 23:16:37 +0200 Subject: [PATCH] Add interactive script that uses fzf List all secrets and preview their data. Show the data of the selected secret on enter. --- interactive | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 interactive diff --git a/interactive b/interactive new file mode 100755 index 0000000..32cae3c --- /dev/null +++ b/interactive @@ -0,0 +1,5 @@ +#!/bin/bash + +./pole3 tree "$1" 2>/dev/null | + fzf --preview './pole3 get {} | jq --color-output' \ + --bind 'enter:become(./pole3 get {})'