Skip to content

Commit

Permalink
Merge pull request #2887 from albers/completion-jobs
Browse files Browse the repository at this point in the history
Add bash completion for jobs
  • Loading branch information
silvin-lubecki authored Jan 5, 2021
2 parents 2291f61 + a4e86b5 commit 2560cc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -3731,6 +3731,7 @@ _docker_service_update_and_create() {
--limit-pids
--log-driver
--log-opt
--max-replicas
--replicas
--replicas-max-per-node
--reserve-cpu
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2560cc6

Please sign in to comment.