1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #11883 from coolljt0725/add_missing_option_to_bash_completion

Add some missing option to bash completion
This commit is contained in:
Arnaud Porterie 2015-04-02 22:49:58 -07:00
commit a3a45a6ec0

View file

@ -220,6 +220,10 @@ _docker_docker() {
_filedir -d
return
;;
--log-driver)
COMPREPLY=( $( compgen -W "json-file syslog none" -- "$cur" ) )
return
;;
--log-level|-l)
COMPREPLY=( $( compgen -W "debug info warn error fatal" -- "$cur" ) )
return
@ -275,7 +279,7 @@ _docker_build() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--file -f --force-rm --help --no-cache --pull --quiet -q --rm --tag -t" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--cpu-shares -c --cpuset-cpus --file -f --force-rm --help --memory -m --memory-swap --no-cache --pull --quiet -q --rm --tag -t" -- "$cur" ) )
;;
*)
local counter="$(__docker_pos_first_nonflag '--tag|-t')"
@ -469,7 +473,7 @@ _docker_images() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --filter -f --help --no-trunc --quiet -q" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--all -a --digests --filter -f --help --no-trunc --quiet -q" -- "$cur" ) )
;;
=)
return
@ -1154,6 +1158,7 @@ _docker() {
--insecure-registry
--ip
--label
--log-driver
--log-level -l
--mtu
--pidfile -p