balrog

A partial drop-in replacement for pass and pass-otp written in POSIX shell.
git clone https://git.stjo.hn/balrog
Log | Files | Refs | README | LICENSE

commit 45337dae0bbb9903451e8d80845b840369a4574d
parent f821befcc07307607d00f6f85db5fe83541d19d4
Author: St John Karp <contact@stjo.hn>
Date:   Sat, 26 Nov 2022 08:56:39 -0500

Implement the find/search command

Diffstat:
Mbalrog | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/balrog b/balrog @@ -23,6 +23,10 @@ case "$1" in ACTION='edit' shift ;; + find|search) + ACTION='find' + shift + ;; generate) ACTION='generate' shift @@ -108,6 +112,12 @@ while [ -n "$ACTION" ] ; do ACTION='' ;; + find) + find $STORE -type f -path "*$KEY*" | + sed "s|$STORE/||" + + ACTION='' + ;; generate) # Create the path. mkdir -p "${KEY_FILE%/*}"