зеркало из https://github.com/microsoft/docker.git
bash completion: support for dm.use_deferred_* options
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Родитель
ef49d127e3
Коммит
2d44ed6d64
|
@ -667,6 +667,8 @@ _docker_daemon() {
|
||||||
dm.mountopt
|
dm.mountopt
|
||||||
dm.override_udev_sync_check
|
dm.override_udev_sync_check
|
||||||
dm.thinpooldev
|
dm.thinpooldev
|
||||||
|
dm.use_deferred_deletion
|
||||||
|
dm.use_deferred_removal
|
||||||
"
|
"
|
||||||
local zfs_options="zfs.fsname"
|
local zfs_options="zfs.fsname"
|
||||||
|
|
||||||
|
@ -704,7 +706,7 @@ _docker_daemon() {
|
||||||
|
|
||||||
case "${words[$cword-2]}$prev=" in
|
case "${words[$cword-2]}$prev=" in
|
||||||
# completions for --storage-opt
|
# completions for --storage-opt
|
||||||
*dm.blkdiscard=*)
|
*dm.@(blkdiscard|override_udev_sync_check|use_deferred_@(removal|deletion))=*)
|
||||||
COMPREPLY=( $( compgen -W "false true" -- "${cur#=}" ) )
|
COMPREPLY=( $( compgen -W "false true" -- "${cur#=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -712,10 +714,6 @@ _docker_daemon() {
|
||||||
COMPREPLY=( $( compgen -W "ext4 xfs" -- "${cur#=}" ) )
|
COMPREPLY=( $( compgen -W "ext4 xfs" -- "${cur#=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
*dm.override_udev_sync_check=*)
|
|
||||||
COMPREPLY=( $( compgen -W "false true" -- "${cur#=}" ) )
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
*dm.thinpooldev=*)
|
*dm.thinpooldev=*)
|
||||||
_filedir
|
_filedir
|
||||||
return
|
return
|
||||||
|
|
Загрузка…
Ссылка в новой задаче