mirror of https://github.com/docker/cli.git
Merge pull request #2887 from albers/completion-jobs
Add bash completion for jobs
This commit is contained in:
commit
2560cc664b
|
@ -3601,7 +3601,7 @@ _docker_service_ls() {
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
mode)
|
mode)
|
||||||
COMPREPLY=( $( compgen -W "global replicated" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "global global-job replicated replicated-job" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
name)
|
name)
|
||||||
|
@ -3731,6 +3731,7 @@ _docker_service_update_and_create() {
|
||||||
--limit-pids
|
--limit-pids
|
||||||
--log-driver
|
--log-driver
|
||||||
--log-opt
|
--log-opt
|
||||||
|
--max-replicas
|
||||||
--replicas
|
--replicas
|
||||||
--replicas-max-per-node
|
--replicas-max-per-node
|
||||||
--reserve-cpu
|
--reserve-cpu
|
||||||
|
@ -3804,7 +3805,7 @@ _docker_service_update_and_create() {
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--mode)
|
--mode)
|
||||||
COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "global global-job replicated replicated-job" -- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue