Skip to content

Commit

Permalink
koji: Complete on build targets when --target is given to wait-repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 16, 2013
1 parent 796fbbd commit 2f2f127
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion completions/koji
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2f2f127

Please sign in to comment.