[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-144-g2f2f127

Ville Skyttä ville.skytta at iki.fi
Sat Mar 16 18:42:08 UTC 2013


The following commit has been merged in the master branch:
commit 2f2f1278c7ae535d1c3763370e22e7f4083a50e7
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Mar 16 20:41:23 2013 +0200

    koji: Complete on build targets when --target is given to wait-repo.

diff --git a/completions/koji b/completions/koji
index f4bdeac..bd6cb2f 100644
--- a/completions/koji
+++ b/completions/koji
@@ -162,7 +162,7 @@ _koji()
             latest-by-tag)
                 _koji_package "$1"
                 ;;
-            latest-pkg|list-groups|list-tag-inheritance|show-groups|wait-repo)
+            latest-pkg|list-groups|list-tag-inheritance|show-groups)
                 case $nth in
                     1)
                         _koji_tag "$1"
@@ -217,6 +217,19 @@ _koji()
             taginfo)
                 _koji_tag "$1"
                 ;;
+            wait-repo)
+                case $nth in
+                    1)
+                        for (( i=commandix+1; i < cword; i++ )); do
+                            if [[ ${words[i]} == --target ]]; then
+                                _koji_target "$1"
+                                return
+                            fi
+                        done
+                        _koji_tag "$1"
+                        ;;
+                esac
+                ;;
         esac
         return
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list