From 34dda64b95268381c56c8988266c92cb10903806 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Feb 2015 15:50:29 +0100 Subject: 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. --- completion/xdg-app | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'completion') 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 -- cgit v1.2.1