소스 검색

Add bash completion for `docker stats --format`

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 8 년 전
부모
커밋
ed0f53d7b6
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      contrib/completion/bash/docker

+ 7 - 1
contrib/completion/bash/docker

@@ -2669,9 +2669,15 @@ _docker_start() {
 }
 
 _docker_stats() {
+	case "$prev" in
+		--format)
+			return
+			;;
+	esac
+
 	case "$cur" in
 		-*)
-			COMPREPLY=( $( compgen -W "--all -a --help --no-stream" -- "$cur" ) )
+			COMPREPLY=( $( compgen -W "--all -a --format --help --no-stream" -- "$cur" ) )
 			;;
 		*)
 			__docker_complete_containers_running