summaryrefslogtreecommitdiff
path: root/completions/xm
diff options
context:
space:
mode:
Diffstat (limited to 'completions/xm')
-rw-r--r--completions/xm55
1 files changed, 27 insertions, 28 deletions
diff --git a/completions/xm b/completions/xm
index 37bd3d02..e3ae9796 100644
--- a/completions/xm
+++ b/completions/xm
@@ -2,14 +2,14 @@
_xen_domain_names()
{
- COMPREPLY=( $(compgen -W "$( xm list 2>/dev/null | \
- awk '!/Name|Domain-0/ { print $1 }' )" -- "$cur") )
+ COMPREPLY=( $( compgen -W "$( xm list 2>/dev/null | \
+ awk '!/Name|Domain-0/ { print $1 }' )" -- "$cur" ) )
}
_xen_domain_ids()
{
- COMPREPLY=( $(compgen -W "$( xm list 2>/dev/null | \
- awk '!/Name|Domain-0/ { print $2 }' )" -- "$cur") )
+ COMPREPLY=( $( compgen -W "$( xm list 2>/dev/null | \
+ awk '!/Name|Domain-0/ { print $2 }' )" -- "$cur" ) )
}
_xm()
@@ -21,16 +21,16 @@ _xm()
local command options
- commands='console vncviewer create new delete destroy domid domname \
- dump-core list mem-max mem-set migrate pause reboot rename reset \
- restore resume save shutdown start suspend sysrq trigger top unpause \
- uptime usb-add usb-del vcpu-list vcpu-pin vcpu-set debug-keys dmesg \
- info log serve sched-credit sched-sedf block-attach block-detach \
- block-list block-configure network-attach network-detach network-list \
- vtpm-list pci-attach pci-detach pci-list pci-list-assignable-devices \
- scsi-attach scsi-detach scsi-list vnet-list vnet-create vnet-delete \
- labels addlabel rmlabel getlabel dry-run resources dumppolicy \
- setpolicy resetpolicy getpolicy shell help'
+ commands='console vncviewer create new delete destroy domid domname
+ dump-core list mem-max mem-set migrate pause reboot rename reset
+ restore resume save shutdown start suspend sysrq trigger top unpause
+ uptime usb-add usb-del vcpu-list vcpu-pin vcpu-set debug-keys dmesg
+ info log serve sched-credit sched-sedf block-attach block-detach
+ block-list block-configure network-attach network-detach network-list
+ vtpm-list pci-attach pci-detach pci-list pci-list-assignable-devices
+ scsi-attach scsi-detach scsi-list vnet-list vnet-create vnet-delete
+ labels addlabel rmlabel getlabel dry-run resources dumppolicy setpolicy
+ resetpolicy getpolicy shell help'
if [[ $cword -eq 1 ]] ; then
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
@@ -69,12 +69,9 @@ _xm()
options='--dumpxml'
;;
new)
- options='-h --help --help_config -q \
- --quiet --path= -f= \
- --defconfig= -F= --config= \
- -b --dryrun -x --xmldryrun \
- -s --skipdtd -p --paused -c \
- --console_autoconnect'
+ options='-h --help --help_config -q --quiet --path= -f=
+ --defconfig= -F= --config= -b --dryrun -x --xmldryrun
+ -s --skipdtd -p --paused -c --console_autoconnect'
;;
esac
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
@@ -122,7 +119,8 @@ _xm()
_xen_domain_names
;;
3)
- COMPREPLY=( $(compgen -W "r s e i u b" -- "$cur") )
+ COMPREPLY=( $( compgen -W "r s e i u b" \
+ -- "$cur" ) )
;;
esac
;;
@@ -133,10 +131,11 @@ _xm()
_xen_domain_names
;;
3)
- COMPREPLY=( $(compgen -W "phy: file:" -- "$cur") )
+ COMPREPLY=( $( compgen -W "phy: file:" \
+ -- "$cur" ) )
;;
5)
- COMPREPLY=( $(compgen -W "w r" -- "$cur") )
+ COMPREPLY=( $( compgen -W "w r" -- "$cur" ) )
;;
6)
_xen_domain_names
@@ -150,9 +149,9 @@ _xm()
_xen_domain_names
;;
3)
- COMPREPLY=( $(compgen -W "$( xm block-list $prev \
+ COMPREPLY=( $( compgen -W "$( xm block-list $prev \
2>/dev/null | awk '!/Vdev/ { print $1 }' )" \
- -- "$cur") )
+ -- "$cur" ) )
;;
esac
;;
@@ -163,8 +162,8 @@ _xm()
_xen_domain_names
;;
*)
- COMPREPLY=( $(compgen -W "script= ip= mac= \
- bridge= backend=" -- "$cur") )
+ COMPREPLY=( $( compgen -W "script= ip= mac= bridge=
+ backend=" -- "$cur" ) )
;;
esac
;;
@@ -177,7 +176,7 @@ _xm()
3)
COMPREPLY=( $(compgen -W "$( xm network-list $prev \
2>/dev/null | awk '!/Idx/ { print $1 }' )" \
- -- "$cur") )
+ -- "$cur" ) )
;;
esac
;;