From b3fd84e290be0066cf042755f62ca71cb180422e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 3 Jan 2014 00:12:42 +0100 Subject: [PATCH] Add fdroid lint completion --- completion/bash-completion | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/completion/bash-completion b/completion/bash-completion index 4ac8602b..8423b3e0 100644 --- a/completion/bash-completion +++ b/completion/bash-completion @@ -190,6 +190,19 @@ __complete_rewritemeta() { esac } +__complete_lint() { + opts="-h -v" + lopts="--help --verbose" + case "${cur}" in + -*) + __complete_options + return 0;; + *) + __package + return 0;; + esac +} + __complete_scanner() { opts="-h -v" lopts="--help --verbose --nosvn" @@ -244,7 +257,7 @@ _fdroid() { local cmd cmds cmd=${COMP_WORDS[1]} cmds=" build init install update publish checkupdates import - rewritemeta scanner verify stats server " + rewritemeta lint scanner verify stats server " for c in $cmds; do eval "_fdroid_${c} () { local cur prev opts lopts