aboutsummaryrefslogtreecommitdiff
path: root/pass-otp.bash.completion
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2019-03-22 12:33:29 +0100
committerTad Fisher <129148+tadfisher@users.noreply.github.com>2020-09-12 12:49:24 -0700
commit99419824e12ccfa082967248df356e15f456e8cd (patch)
tree495bac8387cb43ecdc1828aff502ea2f46432663 /pass-otp.bash.completion
parent3b11688682435847b49ef6310eb11eab32acd8b9 (diff)
downloadpass-otp-99419824e12ccfa082967248df356e15f456e8cd.tar.gz
pass-otp-99419824e12ccfa082967248df356e15f456e8cd.zip
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.
Diffstat (limited to 'pass-otp.bash.completion')
-rw-r--r--pass-otp.bash.completion2
1 files changed, 1 insertions, 1 deletions
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
}