From 2f2f1278c7ae535d1c3763370e22e7f4083a50e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 16 Mar 2013 20:41:23 +0200 Subject: [PATCH] koji: Complete on build targets when --target is given to wait-repo. --- completions/koji | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/completions/koji b/completions/koji index f4bdeacf..bd6cb2fd 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