mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
Add fdroid lint completion
This commit is contained in:
parent
a40533a521
commit
b3fd84e290
@ -190,6 +190,19 @@ __complete_rewritemeta() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__complete_lint() {
|
||||||
|
opts="-h -v"
|
||||||
|
lopts="--help --verbose"
|
||||||
|
case "${cur}" in
|
||||||
|
-*)
|
||||||
|
__complete_options
|
||||||
|
return 0;;
|
||||||
|
*)
|
||||||
|
__package
|
||||||
|
return 0;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
__complete_scanner() {
|
__complete_scanner() {
|
||||||
opts="-h -v"
|
opts="-h -v"
|
||||||
lopts="--help --verbose --nosvn"
|
lopts="--help --verbose --nosvn"
|
||||||
@ -244,7 +257,7 @@ _fdroid() {
|
|||||||
local cmd cmds
|
local cmd cmds
|
||||||
cmd=${COMP_WORDS[1]}
|
cmd=${COMP_WORDS[1]}
|
||||||
cmds=" build init install update publish checkupdates import
|
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} () {
|
for c in $cmds; do eval "_fdroid_${c} () {
|
||||||
local cur prev opts lopts
|
local cur prev opts lopts
|
||||||
|
Loading…
Reference in New Issue
Block a user