From 9b4b730adb2c089e4d99ad58f129cc29bc69b08b Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 16 Aug 2016 14:10:28 +0200 Subject: [PATCH] Add bash completion for `docker {network,volume} ls --format` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 00486ba146..bd35434529 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1546,11 +1546,14 @@ _docker_network_ls() { __docker_nospace return ;; + --format) + return + ;; esac case "$cur" in -*) - COMPREPLY=( $( compgen -W "--filter -f --help --no-trunc --quiet -q" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--filter -f --format --help --no-trunc --quiet -q" -- "$cur" ) ) ;; esac } @@ -2835,11 +2838,14 @@ _docker_volume_ls() { __docker_nospace return ;; + --format) + return + ;; esac case "$cur" in -*) - COMPREPLY=( $( compgen -W "--filter -f --help --quiet -q" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--filter -f --format --help --quiet -q" -- "$cur" ) ) ;; esac }