Explorar o código

Add bash completion for `history --format`

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers %!s(int64=8) %!d(string=hai) anos
pai
achega
c3e161fb52
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      contrib/completion/bash/docker

+ 7 - 1
contrib/completion/bash/docker

@@ -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)