mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #12922 from tianon/complete-repos-on-pull-all
Only complete repos with "docker pull -a"
This commit is contained in:
commit
b58f48ae42
1 changed files with 8 additions and 0 deletions
|
@ -679,6 +679,14 @@ _docker_pull() {
|
||||||
*)
|
*)
|
||||||
local counter=$(__docker_pos_first_nonflag)
|
local counter=$(__docker_pos_first_nonflag)
|
||||||
if [ $cword -eq $counter ]; then
|
if [ $cword -eq $counter ]; then
|
||||||
|
for arg in "${COMP_WORDS[@]}"; do
|
||||||
|
case "$arg" in
|
||||||
|
--all-tags|-a)
|
||||||
|
__docker_image_repos
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
__docker_image_repos_and_tags
|
__docker_image_repos_and_tags
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue