mirror of https://github.com/docker/cli.git
Merge pull request #395 from albers/completion-service-ps-multiple
bash completion for `service ps` supports multiple services
This commit is contained in:
commit
c4d705fa7f
|
@ -3242,10 +3242,7 @@ _docker_service_ps() {
|
||||||
COMPREPLY=( $( compgen -W "--filter -f --format --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--filter -f --format --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
local counter=$(__docker_pos_first_nonflag '--filter|-f')
|
|
||||||
if [ "$cword" -eq "$counter" ]; then
|
|
||||||
__docker_complete_services
|
__docker_complete_services
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue