From 99419824e12ccfa082967248df356e15f456e8cd Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Fri, 22 Mar 2019 12:33:29 +0100 Subject: Add support for quiet output of otp code command When using this option the output of `pass otp -q ...` is predictable and can be further used without parsing even when the password store is a repository as well. This is useful, for example, when using rofi-pass. The patch is written in a way that other commands can optionally use the quiet option for otp_insert as well. --- pass-otp.bash.completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pass-otp.bash.completion') diff --git a/pass-otp.bash.completion b/pass-otp.bash.completion index 5b13dcc..419edbd 100644 --- a/pass-otp.bash.completion +++ b/pass-otp.bash.completion @@ -20,7 +20,7 @@ __password_store_extension_complete_otp() { ;; esac else - COMPREPLY+=($(compgen -W "insert append uri validate -h --help -c --clip" -- ${cur})) + COMPREPLY+=($(compgen -W "insert append uri validate -h --help -c --clip -q --quiet" -- ${cur})) _pass_complete_entries 1 fi } -- cgit v1.2.3