[Pkg-libvirt-commits] [libguestfs] 14/384: bash: complete some params for resize, sparsify, and builder

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:54:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit e3834188a9c7a4e91025ef93e5246894c10b4c2c
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Tue Nov 25 20:08:46 2014 +0100

    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 447f0cf..7c879e1 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list