Merge pull request #27731 from albers/completion-export--output

Add bash completion for `docker export --output`
This commit is contained in:
Michael Crosby 2016-10-28 10:59:05 -07:00 committed by GitHub
commit 9842f019ec
1 changed files with 8 additions and 1 deletions

View File

@ -1007,9 +1007,16 @@ _docker_container_exec() {
}
_docker_container_export() {
case "$prev" in
--output|-o)
_filedir
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--help --output -o" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)