Add bash completion for `logs --until`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-11-17 18:45:05 +01:00
parent 5e2be6584a
commit 667dead8b7
1 changed files with 3 additions and 3 deletions

View File

@ -1487,17 +1487,17 @@ _docker_container_kill() {
_docker_container_logs() {
case "$prev" in
--since|--tail)
--since|--tail|--until)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--details --follow -f --help --since --tail --timestamps -t" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--details --follow -f --help --since --tail --timestamps -t --until" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag '--since|--tail')
local counter=$(__docker_pos_first_nonflag '--since|--tail|--until')
if [ "$cword" -eq "$counter" ]; then
__docker_complete_containers_all
fi