From 1ef558c68d4e3322212fb8f386d91831b367f50d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 29 Aug 2013 15:26:24 +0200 Subject: [PATCH] Basic bash completion for fdroid verify --- completion/bash-completion | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/completion/bash-completion b/completion/bash-completion index ce60c97e..e254ec28 100644 --- a/completion/bash-completion +++ b/completion/bash-completion @@ -149,6 +149,17 @@ __complete_scanner() { __complete_options } +__complete_verify() { + opts="-h -v -p" + lopts="--help --verbose --package" + case "${prev}" in + -p|--package) + __package + return 0;; + esac + __complete_options +} + __complete_stats() { opts="-h -v -d" lopts="--help --verbose --download" @@ -164,7 +175,7 @@ __complete_server() { _fdroid() { local cmd cmds aliased cmd=${COMP_WORDS[1]} - cmds=" build update publish checkupdates import rewritemeta scanner stats server " + cmds=" build update publish checkupdates import rewritemeta scanner verify stats server " aliased=false for c in $cmds; do eval "_fdroid_${c} () {