From 82123939f738796870be0c3a4357a157d630e9bd Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 15 Dec 2020 20:06:01 +0000 Subject: [PATCH] Add bash completion for jobs Signed-off-by: Harald Albers (cherry picked from commit a4e86b543304726bb5639892a045f319a0471fc0) Signed-off-by: Sebastiaan van Stijn --- contrib/completion/bash/docker | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 6baf682118..49868abbaf 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3601,7 +3601,7 @@ _docker_service_ls() { return ;; mode) - COMPREPLY=( $( compgen -W "global replicated" -- "${cur##*=}" ) ) + COMPREPLY=( $( compgen -W "global global-job replicated replicated-job" -- "${cur##*=}" ) ) return ;; name) @@ -3731,6 +3731,7 @@ _docker_service_update_and_create() { --limit-pids --log-driver --log-opt + --max-replicas --replicas --replicas-max-per-node --reserve-cpu @@ -3804,7 +3805,7 @@ _docker_service_update_and_create() { return ;; --mode) - COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "global global-job replicated replicated-job" -- "$cur" ) ) return ;; esac