1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Move bash completion logic to new subcommand: history

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9059b9532e96412e84d59823765aa19095a5bd84
Component: engine
This commit is contained in:
Harald Albers
2016-10-22 09:26:07 -07:00
parent f0c1f13e31
commit 5beb4da007

View File

@@ -1951,17 +1951,7 @@ _docker_help() {
}
_docker_history() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_images
fi
;;
esac
_docker_image_history
}
@@ -2067,7 +2057,17 @@ _docker_image_build() {
}
_docker_image_history() {
_docker_history
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_images
fi
;;
esac
}
_docker_image_images() {