diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-02-09 15:50:29 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-02-09 17:17:19 +0100 |
commit | 34dda64b95268381c56c8988266c92cb10903806 (patch) | |
tree | 0322a547754ead1b46aec7fbddd6b46794841583 /completion | |
parent | 2054f0e6f5f090793d9bdecf6ed5a61514e760ab (diff) | |
download | xdg-app-34dda64b95268381c56c8988266c92cb10903806.tar.gz |
Add a --title option to repo-update
This stores a human-readable title in the additional metadata
of the repo summary. We use xa.title as the key.
Diffstat (limited to 'completion')
-rwxr-xr-x | completion/xdg-app | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/completion/xdg-app b/completion/xdg-app index 949063d..ee14c49 100755 --- a/completion/xdg-app +++ b/completion/xdg-app @@ -33,7 +33,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 +57,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 +153,9 @@ _xdg-app() { if [ "$verb" = "build-export" ]; then comps="$comps ${OPTS[BUILD_EXPORT]}" fi + if [ "$verb" = "repo-update" ]; then + comps="$comps ${OPTS[REPO_UPDATE]}" + fi else case "$verb" in |