summaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-01-24 22:01:57 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-01-24 22:01:57 -0500
commit6c2f2fafa122c629ca40639e49017d0409c7a654 (patch)
tree360036928bbdc2358a2341a8757dc110904b9790 /completion
parent29151659ae6915bf5b6a71f64e7a9ee52411b749 (diff)
downloadxdg-app-6c2f2fafa122c629ca40639e49017d0409c7a654.tar.gz
Add completion for repo-update
Diffstat (limited to 'completion')
-rwxr-xr-xcompletion/xdg-app13
1 files changed, 12 insertions, 1 deletions
diff --git a/completion/xdg-app b/completion/xdg-app
index 461ae10..1d924cd 100755
--- a/completion/xdg-app
+++ b/completion/xdg-app
@@ -15,7 +15,7 @@ _xdg-app() {
local dir cmd sdk loc
local -A VERBS=(
- [ALL]='add-remote delete-remote list-remotes repo-contents install-runtime update-runtime uninstall-runtime list-runtimes install-app update-app uninstall-app list-apps run build-init build build-finish build-export'
+ [ALL]='add-remote delete-remote list-remotes repo-contents install-runtime update-runtime uninstall-runtime list-runtimes install-app update-app uninstall-app list-apps run build-init build build-finish build-export repo-update'
[MODE]='add-remote delete-remote list-remotes repo-contents install-runtime update-runtime uninstall-runtime list-runtimes install-app update-app uninstall-app list-apps'
[UNINSTALL]='uninstall-runtime uninstall-app'
[ARCH]='build-init install-runtime install-app run uninstall-runtime uninstall-app update-runtime update-app'
@@ -110,6 +110,10 @@ _xdg-app() {
elif [[ -z $name ]]; then
name=${COMP_WORDS[i]}
fi
+ elif [[ $verb = repo-update ]]; then
+ if [[ -z $loc ]]; then
+ loc=${COMP_WORDS[i]}
+ fi
fi
done
@@ -241,6 +245,13 @@ _xdg-app() {
fi
;;
+ repo-update)
+ if [[ -z $loc ]]; then
+ comps=''
+ compopt -o dirnames
+ fi
+ ;;
+
esac
fi