From e3834188a9c7a4e91025ef93e5246894c10b4c2c Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 25 Nov 2014 20:08:46 +0100 Subject: [PATCH] bash: complete some params for resize, sparsify, and builder Hardcode the list of fixed arguments for some of the parameters of these tools. --- bash/virt-resize | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bash/virt-resize b/bash/virt-resize index 447f0cf87..7c879e187 100644 --- a/bash/virt-resize +++ b/bash/virt-resize @@ -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