mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add bash completion for service ls --filter mode
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
b6abfbafcd
commit
8eac1daa81
1 changed files with 5 additions and 1 deletions
|
@ -2868,6 +2868,10 @@ _docker_service_ls() {
|
||||||
__docker_complete_services --cur "${cur##*=}" --id
|
__docker_complete_services --cur "${cur##*=}" --id
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
mode)
|
||||||
|
COMPREPLY=( $( compgen -W "global replicated" -- "${cur##*=}" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
name)
|
name)
|
||||||
__docker_complete_services --cur "${cur##*=}" --name
|
__docker_complete_services --cur "${cur##*=}" --name
|
||||||
return
|
return
|
||||||
|
@ -2876,7 +2880,7 @@ _docker_service_ls() {
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--filter|-f)
|
--filter|-f)
|
||||||
COMPREPLY=( $( compgen -W "id label name" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "id label mode name" -S = -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue