mirror of https://github.com/docker/compose.git
Merge pull request #3206 from albers/completion-exec
bash completion for `docker-compose exec`
This commit is contained in:
commit
aabeb56527
|
@ -186,6 +186,24 @@ _docker_compose_events() {
|
|||
}
|
||||
|
||||
|
||||
_docker_compose_exec() {
|
||||
case "$prev" in
|
||||
--index|--user)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "-d --help --index --privileged -T --user" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
__docker_compose_services_running
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
_docker_compose_help() {
|
||||
COMPREPLY=( $( compgen -W "${commands[*]}" -- "$cur" ) )
|
||||
}
|
||||
|
@ -441,6 +459,7 @@ _docker_compose() {
|
|||
create
|
||||
down
|
||||
events
|
||||
exec
|
||||
help
|
||||
kill
|
||||
logs
|
||||
|
|
Loading…
Reference in New Issue