Merge pull request #12922 from tianon/complete-repos-on-pull-all
Only complete repos with "docker pull -a" Upstream-commit: b58f48ae42f348f573d7874fa8a29bd816cd821a Component: engine
This commit is contained in:
@ -679,6 +679,14 @@ _docker_pull() {
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag)
|
||||
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
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user