Skip to content

Commit

Permalink
Add bash completion for new devicemapper storage options
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <[email protected]>
  • Loading branch information
albers committed May 5, 2017
1 parent 05ad14f commit 37747a0
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -2021,15 +2021,15 @@ _docker_daemon() {
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
return
;;
dm.fs)
COMPREPLY=( $( compgen -W "ext4 xfs" -- "${cur##*=}" ) )
return
;;
dm.thinpooldev)
dm.directlvm_device|dm.thinpooldev)
cur=${cur##*=}
_filedir
return
;;
_filedir
return
;;
dm.fs)
COMPREPLY=( $( compgen -W "ext4 xfs" -- "${cur##*=}" ) )
return
;;
esac

case "$prev" in
Expand Down Expand Up @@ -2069,6 +2069,7 @@ _docker_daemon() {
dm.basesize
dm.blkdiscard
dm.blocksize
dm.directlvm_device
dm.fs
dm.loopdatasize
dm.loopmetadatasize
Expand All @@ -2077,6 +2078,10 @@ _docker_daemon() {
dm.mountopt
dm.override_udev_sync_check
dm.thinpooldev
dm.thinp_autoextend_percent
dm.thinp_autoextend_threshold
dm.thinp_metapercent
dm.thinp_percent
dm.use_deferred_deletion
dm.use_deferred_removal
"
Expand Down

0 comments on commit 37747a0

Please sign in to comment.