Merge pull request #23804 from albers/completion-btrfs-min_space

bash completion for `docker daemon --storage-opt btrfs.min_space`
This commit is contained in:
Sven Dowideit 2016-06-21 21:18:49 +10:00 committed by GitHub
commit 5ba6b1e89c

View file

@ -946,6 +946,7 @@ _docker_daemon() {
return
;;
--storage-opt)
local btrfs_options="btrfs.min_space"
local devicemapper_options="
dm.basesize
dm.blkdiscard
@ -965,7 +966,10 @@ _docker_daemon() {
case $(__docker_value_of_option '--storage-driver|-s') in
'')
COMPREPLY=( $( compgen -W "$devicemapper_options $zfs_options" -S = -- "$cur" ) )
COMPREPLY=( $( compgen -W "$btrfs_options $devicemapper_options $zfs_options" -S = -- "$cur" ) )
;;
btrfs)
COMPREPLY=( $( compgen -W "$btrfs_options" -S = -- "$cur" ) )
;;
devicemapper)
COMPREPLY=( $( compgen -W "$devicemapper_options" -S = -- "$cur" ) )