Merge pull request #702 from albers/completion-log--until

Add bash completion for `logs --until`
This commit is contained in:
Vincent Demeester 2017-11-30 09:40:08 +01:00 committed by GitHub
commit b45a49c83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1492,17 +1492,17 @@ _docker_container_kill() {
_docker_container_logs() { _docker_container_logs() {
case "$prev" in case "$prev" in
--since|--tail) --since|--tail|--until)
return return
;; ;;
esac esac
case "$cur" in 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 if [ "$cword" -eq "$counter" ]; then
__docker_complete_containers_all __docker_complete_containers_all
fi fi