forked from Mirrors/flatpak-builder
Improve completion
The options of the add-remote command were not being completed.tingping/wmclass
parent
1e69e3fc42
commit
f184fbb603
|
@ -25,6 +25,7 @@ _xdg-app() {
|
||||||
[GENERAL]='--help --verbose --version'
|
[GENERAL]='--help --verbose --version'
|
||||||
[MODE]='--user --system'
|
[MODE]='--user --system'
|
||||||
[ARCH]='--arch'
|
[ARCH]='--arch'
|
||||||
|
[ADD_REMOTE]='--no-gpg-verify --if-not-exists --title'
|
||||||
[LIST_REMOTES]='--show-urls'
|
[LIST_REMOTES]='--show-urls'
|
||||||
[REPO_CONTENTS]='--show-details --runtimes --apps --update'
|
[REPO_CONTENTS]='--show-details --runtimes --apps --update'
|
||||||
[UNINSTALL]='--keep-ref'
|
[UNINSTALL]='--keep-ref'
|
||||||
|
@ -156,6 +157,9 @@ _xdg-app() {
|
||||||
if [ "$verb" = "repo-update" ]; then
|
if [ "$verb" = "repo-update" ]; then
|
||||||
comps="$comps ${OPTS[REPO_UPDATE]}"
|
comps="$comps ${OPTS[REPO_UPDATE]}"
|
||||||
fi
|
fi
|
||||||
|
if [ "$verb" = "add-remote" ]; then
|
||||||
|
comps="$comps ${OPTS[ADD_REMOTE]}"
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
case "$verb" in
|
case "$verb" in
|
||||||
|
|
Loading…
Reference in New Issue