1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

Basic bash completion for fdroid verify

This commit is contained in:
Daniel Martí 2013-08-29 15:26:24 +02:00
parent b3f3710e92
commit 1ef558c68d

View File

@ -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} () {