mirror of https://github.com/docker/cli.git
Add bash completion for `service rollback`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
3c7ede6a68
commit
d1ed800860
|
@ -3101,6 +3101,7 @@ _docker_service() {
|
||||||
logs
|
logs
|
||||||
ls
|
ls
|
||||||
rm
|
rm
|
||||||
|
rollback
|
||||||
scale
|
scale
|
||||||
ps
|
ps
|
||||||
update
|
update
|
||||||
|
@ -3215,6 +3216,20 @@ _docker_service_rm() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_docker_service_rollback() {
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--detach=false -d --help --quit -q" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
local counter=$( __docker_pos_first_nonflag )
|
||||||
|
if [ "$cword" -eq "$counter" ]; then
|
||||||
|
__docker_complete_services
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
_docker_service_scale() {
|
_docker_service_scale() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
|
Loading…
Reference in New Issue