diff options
author | Alexander Larsson <alexander.larsson@gmail.com> | 2015-02-10 08:53:50 +0100 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2015-02-10 08:53:50 +0100 |
commit | cd3289e0cb66f3812bb020089784d1b1206fd062 (patch) | |
tree | 408d66b034ee62f831427dbc3a75736177a027a9 /completion | |
parent | 4ff10fee86b40ac30ca1f412e4d6ac8b4d20d70e (diff) | |
parent | f184fbb603b15b0834571ed0e4698cf5420b160c (diff) | |
download | xdg-app-cd3289e0cb66f3812bb020089784d1b1206fd062.tar.gz |
Merge pull request #52 from matthiasclasen/repo-title
repo-title
Diffstat (limited to 'completion')
-rwxr-xr-x | completion/xdg-app | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/completion/xdg-app b/completion/xdg-app index 949063d..ffabdae 100755 --- a/completion/xdg-app +++ b/completion/xdg-app @@ -25,6 +25,7 @@ _xdg-app() { [GENERAL]='--help --verbose --version' [MODE]='--user --system' [ARCH]='--arch' + [ADD_REMOTE]='--no-gpg-verify --if-not-exists --title' [LIST_REMOTES]='--show-urls' [REPO_CONTENTS]='--show-details --runtimes --apps --update' [UNINSTALL]='--keep-ref' @@ -33,7 +34,8 @@ _xdg-app() { [BUILD]='--runtime --network --x11' [BUILD_FINISH]='--command --allow' [BUILD_EXPORT]='--subject --body' - [ARG]='--arch --command --branch --var --allow --forbid --subject --body --runtime' + [REPO_UPDATE]='--title' + [ARG]='--arch --command --branch --var --allow --forbid --subject --body --title --runtime' ) if __contains_word "--user" ${COMP_WORDS[*]}; then @@ -56,7 +58,7 @@ _xdg-app() { --allow|--forbid) comps='x11 wayland ipc pulseaudio system-dbus session-dbus network host-fs homedir' ;; - --branch|--subject|--body) + --branch|--subject|--body|--title) comps='' ;; esac @@ -152,6 +154,12 @@ _xdg-app() { if [ "$verb" = "build-export" ]; then comps="$comps ${OPTS[BUILD_EXPORT]}" fi + if [ "$verb" = "repo-update" ]; then + comps="$comps ${OPTS[REPO_UPDATE]}" + fi + if [ "$verb" = "add-remote" ]; then + comps="$comps ${OPTS[ADD_REMOTE]}" + fi else case "$verb" in |