Merge pull request #32883 from albers/completion-history--format

Add bash completion for `history --format`
This commit is contained in:
Sebastiaan van Stijn 2017-04-27 10:51:12 -07:00 committed by GitHub
commit 2881e2be58

View file

@ -2299,9 +2299,15 @@ _docker_image_build() {
}
_docker_image_history() {
case "$prev" in
--format)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--format --help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)