Move bash completion logic to new subcommand: history
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
bd3939dddd
commit
583bda0896
@ -1956,17 +1956,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
|
||||
}
|
||||
|
||||
|
||||
@ -2072,7 +2062,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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user