mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
Move bash completion logic to new subcommand: push
Signed-off-by: Harald Albers <github@albersweb.de> Upstream-commit: 2d139df59cc2791ef3c343f773311aa3ae000413 Component: engine
This commit is contained in:
@@ -2170,7 +2170,17 @@ _docker_image_pull() {
|
||||
}
|
||||
|
||||
_docker_image_push() {
|
||||
_docker_push
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--disable-content-trust=false --help" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag)
|
||||
if [ $cword -eq $counter ]; then
|
||||
__docker_complete_image_repos_and_tags
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_image_remove() {
|
||||
@@ -3027,17 +3037,7 @@ _docker_pull() {
|
||||
}
|
||||
|
||||
_docker_push() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--disable-content-trust=false --help" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag)
|
||||
if [ $cword -eq $counter ]; then
|
||||
__docker_complete_image_repos_and_tags
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
_docker_image_push
|
||||
}
|
||||
|
||||
_docker_rename() {
|
||||
|
||||
Reference in New Issue
Block a user