From 78c20fde24eb3c0191cfca6a41bad3340a4651ad Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 16 Feb 2006 18:06:03 +0000 Subject: [PATCH] 2006-02-16 18:06:03 by steve Add '--volume' completion. --- misc/xen-tools | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/xen-tools b/misc/xen-tools index 2f0bcab..5442059 100644 --- a/misc/xen-tools +++ b/misc/xen-tools @@ -20,7 +20,7 @@ # -- # http://www.steve.org.uk # -# $Id: xen-tools,v 1.19 2006-01-11 01:07:56 steve Exp $ +# $Id: xen-tools,v 1.20 2006-02-16 18:06:03 steve Exp $ # @@ -38,7 +38,7 @@ _xen_create_image() COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} - opts='--broadcast --boot --debug --debootstrap --dhcp --dir --dist --fs --gateway --help --hostname --ip --manual --memory --mirror --passwd --role --size --swap --version' + opts='--broadcast --boot --debug --debootstrap --dhcp --dir --dist --fs --gateway --help --hostname --ip --manual --memory --mirror --passwd --role --size --swap --volume --version' # @@ -89,7 +89,7 @@ _xen_duplicate_image() COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - opts="--broadcast --dhcp --dir --from --gateway --help --hostname --ip --manual --netmask --version" + opts="--broadcast --dhcp --dir --from --gateway --help --hostname --ip --manual --netmask --version --volume" # # Complete the initial part of the IP in the configuration file. @@ -155,7 +155,7 @@ _xen_delete_image() # # Complete the options + all available hostnames. # - opts="--dir --help --manual --test --version ${names}" + opts="--dir --help --manual --test --version --volume ${names}" case "${prev}" in --dir) @@ -200,7 +200,7 @@ _xen_update_image() names=$(for x in `ls -1 ${base} 2>/dev/null`; do echo -n "${x} " ; done ) fi - opts="--dir --help --manual --version ${names}" + opts="--dir --help --manual --version --volume ${names}" case "${prev}" in --dir) @@ -225,7 +225,7 @@ _xen_list_images() COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - opts="--dir --help --manual --test --version" + opts="--dir --help --manual --test --version --volume" case "${prev}" in --dir)