Merge pull request #1278 from albers/completion-run-user

Add bash completion for docker-compose run --user
(cherry picked from commit 3cd116b99d71f0e0da84e77797392e12070734e1)

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Daniel Nephin 2015-04-14 11:04:03 -04:00 committed by Aanand Prasad
parent a467a8a094
commit b6acb3cd8c

View File

@ -232,14 +232,14 @@ _docker-compose_run() {
compopt -o nospace
return
;;
--entrypoint)
--entrypoint|--user|-u)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--allow-insecure-ssl -d --entrypoint -e --no-deps --rm --service-ports -T" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--allow-insecure-ssl -d --entrypoint -e --no-deps --rm --service-ports -T --user -u" -- "$cur" ) )
;;
*)
__docker-compose_services_all