bash: complete some params for resize, sparsify, and builder

Hardcode the list of fixed arguments for some of the parameters of these
tools.
This commit is contained in:
Pino Toscano
2014-11-25 20:08:46 +01:00
parent 1784cd2633
commit e3834188a9

View File

@@ -23,6 +23,21 @@ _guestfs_options_only ()
_init_completion -s || return
case "$prev" in
--align-first)
COMPREPLY=( $( compgen -W "never always auto" -- "$cur") )
return ;;
--check-tmpdir)
COMPREPLY=( $( compgen -W "ignore i continue cont c warn warning w fail f error" -- "$cur") )
return ;;
--list-format)
COMPREPLY=( $( compgen -W "short long json" -- "$cur") )
return ;;
--password-crypto)
COMPREPLY=( $( compgen -W "md5 sha256 sha512" -- "$cur") )
return ;;
esac
case "$cur" in
--*)
# --options