introduce —workdir option for docker exec

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof
2017-12-01 08:26:18 +01:00
parent 6b63d7b96a
commit 591a1273fd
5 changed files with 21 additions and 1 deletions

View File

@ -1439,7 +1439,7 @@ _docker_container_exec() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--detach -d --detach-keys --env -e --help --interactive -i --privileged -t --tty -u --user" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--detach -d --detach-keys --env -e --help --interactive -i --privileged -t --tty -u --user --workdir -w" -- "$cur" ) )
;;
*)
__docker_complete_containers_running