Whitespaces housekeeping

This commit is contained in:
2017-10-08 09:03:11 +02:00
parent 20b1ef9fab
commit d79a8bc280

View File

@@ -499,6 +499,7 @@ _VBoxManage() {
fi fi
fi fi
;; ;;
checkmediumpwd) checkmediumpwd)
if [[ ${prev} == ${cmd} ]]; then if [[ ${prev} == ${cmd} ]]; then
_hdd_comp _hdd_comp
@@ -625,7 +626,6 @@ _VBoxManage() {
videocapmaxtime videocapmaxsize addencpassword removeencpassword videocapmaxtime videocapmaxsize addencpassword removeencpassword
removeallencpasswords) removeallencpasswords)
_find_item_name 2 _find_item_name 2
subcommand=${COMP_WORDS[$((index+1))]} subcommand=${COMP_WORDS[$((index+1))]}
@@ -702,11 +702,9 @@ _VBoxManage() {
_get_excluded_items "${tmp[@]}" _get_excluded_items "${tmp[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
;; ;;
--removeonsuspend) --removeonsuspend)
COMPREPLY=( $(compgen -W "yes no" -- ${cur}) ) COMPREPLY=( $(compgen -W "yes no" -- ${cur}) )
;; ;;
addencpassword) addencpassword)
tmp=(--host --port --maxdowntime --passwordfile tmp=(--host --port --maxdowntime --passwordfile
--password) --password)
@@ -921,7 +919,6 @@ _VBoxManage() {
else else
COMPREPLY=( $(compgen -W "--newpassword --oldpassword --cipher COMPREPLY=( $(compgen -W "--newpassword --oldpassword --cipher
--newpasswordid" -- ${cur}) ) --newpasswordid" -- ${cur}) )
fi fi
;; ;;
@@ -1246,6 +1243,7 @@ _VBoxManage() {
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
fi fi
;; ;;
updatega|updateguestadditions|updateadditions) updatega|updateguestadditions|updateadditions)
items=(--source --wait-start) items=(--source --wait-start)
[[ " ${COMP_WORDS[@]} " != *" --verbose "* && [[ " ${COMP_WORDS[@]} " != *" --verbose "* &&
@@ -1258,6 +1256,7 @@ _VBoxManage() {
_get_excluded_items "${items[@]}" _get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
;; ;;
watch) watch)
items=() items=()
[[ " ${COMP_WORDS[@]} " != *" --verbose "* && [[ " ${COMP_WORDS[@]} " != *" --verbose "* &&
@@ -1271,6 +1270,7 @@ _VBoxManage() {
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
;; ;;
esac esac
case "${prev}" in case "${prev}" in
close) close)
items=(--verbose) items=(--verbose)
@@ -1469,14 +1469,12 @@ _VBoxManage() {
_get_excluded_items "${items[@]}" _get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
fi fi
;; ;;
esac esac
else else
[[ ${#COMPREPLY[@]} -eq 0 ]] && \ [[ ${#COMPREPLY[@]} -eq 0 ]] && \
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
fi fi
;; ;;
modifymedium) modifymedium)
@@ -1602,10 +1600,12 @@ _VBoxManage() {
COMPREPLY=() COMPREPLY=()
_group_comp _group_comp
;; ;;
--ostype) --ostype)
COMPREPLY=() COMPREPLY=()
_os_comp _os_comp
;; ;;
--pagefusion|--acpi|--ioapic|--hpet|--triplefaultreset|\ --pagefusion|--acpi|--ioapic|--hpet|--triplefaultreset|\
--hwvirtex|--nestedpaging|--largepages|--vtxvpid|--vtxux|\ --hwvirtex|--nestedpaging|--largepages|--vtxvpid|--vtxux|\
--pae|--longmode|--cpuhotplug|--rtcuseutc|\ --pae|--longmode|--cpuhotplug|--rtcuseutc|\
@@ -1630,70 +1630,86 @@ _VBoxManage() {
--autostart-enabled|--videocap|--usbxhci|--apic|--x2apic) --autostart-enabled|--videocap|--usbxhci|--apic|--x2apic)
COMPREPLY=( $(compgen -W "on off" -- ${cur}) ) COMPREPLY=( $(compgen -W "on off" -- ${cur}) )
;; ;;
--graphicscontroller) --graphicscontroller)
COMPREPLY=( $(compgen -W "none vboxvga vmsvga" \ COMPREPLY=( $(compgen -W "none vboxvga vmsvga" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--firmware) --firmware)
COMPREPLY=( $(compgen -W "bios efi efi32 efi64" \ COMPREPLY=( $(compgen -W "bios efi efi32 efi64" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--chipset) --chipset)
COMPREPLY=( $(compgen -W "ich9 piix3" -- ${cur}) ) COMPREPLY=( $(compgen -W "ich9 piix3" -- ${cur}) )
;; ;;
--biosbootmenu) --biosbootmenu)
COMPREPLY=( $(compgen -W "disabled menuonly COMPREPLY=( $(compgen -W "disabled menuonly
messageandmenu" -- ${cur}) ) messageandmenu" -- ${cur}) )
;; ;;
--boot[1-4]) --boot[1-4])
COMPREPLY=( $(compgen -W "none floppy dvd disk net" \ COMPREPLY=( $(compgen -W "none floppy dvd disk net" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--nic[1-8]) --nic[1-8])
COMPREPLY=( $(compgen -W "none null nat bridged intnet COMPREPLY=( $(compgen -W "none null nat bridged intnet
hostonly generic natnetwork" -- ${cur}) ) hostonly generic natnetwork" -- ${cur}) )
;; ;;
--nictype[1-8]) --nictype[1-8])
COMPREPLY=( $(compgen -W "Am79C970A Am79C973 82540EM COMPREPLY=( $(compgen -W "Am79C970A Am79C973 82540EM
82543GC 82545EM virtio" -- ${cur}) ) 82543GC 82545EM virtio" -- ${cur}) )
;; ;;
--nicpromisc[1-8]) --nicpromisc[1-8])
COMPREPLY=( $(compgen -W "deny allow-vms allow-all" \ COMPREPLY=( $(compgen -W "deny allow-vms allow-all" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--nicbandwidthgroup[1-8]) --nicbandwidthgroup[1-8])
COMPREPLY=() COMPREPLY=()
_bandwidthctl_comp _bandwidthctl_comp
_get_excluded_items "none" _get_excluded_items "none"
COMPREPLY+=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY+=( $(compgen -W "$result" -- ${cur}) )
;; ;;
--bridgeadapter[1-8]) --bridgeadapter[1-8])
COMPREPLY=() COMPREPLY=()
_bridgedif_comp _bridgedif_comp
_get_excluded_items "none" _get_excluded_items "none"
COMPREPLY+=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY+=( $(compgen -W "$result" -- ${cur}) )
;; ;;
--hostonlyadapter[1-8]) --hostonlyadapter[1-8])
COMPREPLY=() COMPREPLY=()
_hostonlyif_comp _hostonlyif_comp
_get_excluded_items "none" _get_excluded_items "none"
COMPREPLY+=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY+=( $(compgen -W "$result" -- ${cur}) )
;; ;;
--intnet[1-8]) --intnet[1-8])
COMPREPLY=() COMPREPLY=()
_intnet_comp _intnet_comp
;; ;;
--nat-network[1-8]) --nat-network[1-8])
COMPREPLY=() COMPREPLY=()
_natnet_comp _natnet_comp
;; ;;
--natnet[1-8]) --natnet[1-8])
COMPREPLY=() COMPREPLY=()
_natnet_comp _natnet_comp
;; ;;
--natpf[1-8]) --natpf[1-8])
COMPREPLY+=( $(compgen -W "delete" -- ${cur}) ) COMPREPLY+=( $(compgen -W "delete" -- ${cur}) )
;; ;;
--nataliasmode[1-8]) --nataliasmode[1-8])
COMPREPLY+=( $(compgen -W "default" -- ${cur}) ) COMPREPLY+=( $(compgen -W "default" -- ${cur}) )
;; ;;
@@ -1701,58 +1717,73 @@ _VBoxManage() {
--macaddress[1-8]) --macaddress[1-8])
COMPREPLY+=( $(compgen -W "auto" -- ${cur}) ) COMPREPLY+=( $(compgen -W "auto" -- ${cur}) )
;; ;;
--mouse) --mouse)
COMPREPLY+=( $(compgen -W "ps2 usb usbtablet COMPREPLY+=( $(compgen -W "ps2 usb usbtablet
usbmultitouch" -- ${cur}) ) usbmultitouch" -- ${cur}) )
;; ;;
--keyboard) --keyboard)
COMPREPLY+=( $(compgen -W "ps2 usb" -- ${cur}) ) COMPREPLY+=( $(compgen -W "ps2 usb" -- ${cur}) )
;; ;;
--uart[1-2]|--lpt[1-2]) --uart[1-2]|--lpt[1-2])
COMPREPLY+=( $(compgen -W "off" -- ${cur}) ) COMPREPLY+=( $(compgen -W "off" -- ${cur}) )
;; ;;
--uartmode[1-2]) --uartmode[1-2])
COMPREPLY+=( $(compgen -W "disconnected server client COMPREPLY+=( $(compgen -W "disconnected server client
tcpserver tcpclient file" -- ${cur}) ) tcpserver tcpclient file" -- ${cur}) )
;; ;;
--audio) --audio)
COMPREPLY+=( $(compgen -W "none null oss alsa pulse" \ COMPREPLY+=( $(compgen -W "none null oss alsa pulse" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--audiocontroller) --audiocontroller)
COMPREPLY+=( $(compgen -W "ac97 hda sb16" -- ${cur}) ) COMPREPLY+=( $(compgen -W "ac97 hda sb16" -- ${cur}) )
;; ;;
--audiocodec) --audiocodec)
COMPREPLY+=( $(compgen -W "stac9700 ad1980 stac9221 COMPREPLY+=( $(compgen -W "stac9700 ad1980 stac9221
sb16" -- ${cur}) ) sb16" -- ${cur}) )
;; ;;
--clipboard) --clipboard)
COMPREPLY+=( $(compgen -W "disabled hosttoguest COMPREPLY+=( $(compgen -W "disabled hosttoguest
guesttohost bidirectional" -- ${cur}) ) guesttohost bidirectional" -- ${cur}) )
;; ;;
--draganddrop) --draganddrop)
COMPREPLY+=( $(compgen -W "disabled hosttoguest" \ COMPREPLY+=( $(compgen -W "disabled hosttoguest" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--vrdeextpack|--vrdeauthlibrary|--snapshotfolder|\ --vrdeextpack|--vrdeauthlibrary|--snapshotfolder|\
--defaultfrontend) --defaultfrontend)
COMPREPLY+=( $(compgen -W "default" -- ${cur}) ) COMPREPLY+=( $(compgen -W "default" -- ${cur}) )
;; ;;
--vrdeauthtype) --vrdeauthtype)
COMPREPLY+=( $(compgen -W "null external guest" \ COMPREPLY+=( $(compgen -W "null external guest" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--paravirtprovider) --paravirtprovider)
COMPREPLY=( $(compgen -W "none default legacy minimal COMPREPLY=( $(compgen -W "none default legacy minimal
hyperv kvm" -- ${cur}) ) hyperv kvm" -- ${cur}) )
;; ;;
--cpuid-portability-level) --cpuid-portability-level)
COMPREPLY=( $(compgen -W "0 1 2 3" -- ${cur}) ) COMPREPLY=( $(compgen -W "0 1 2 3" -- ${cur}) )
;; ;;
--cpu-profile) --cpu-profile)
COMPREPLY=( $(compgen -W "host 8086 80286 80386" \ COMPREPLY=( $(compgen -W "host 8086 80286 80386" \
-- ${cur}) ) -- ${cur}) )
;; ;;
--biosapic) --biosapic)
COMPREPLY=( $(compgen -W "disabled apic x2apic" \ COMPREPLY=( $(compgen -W "disabled apic x2apic" \
-- ${cur}) ) -- ${cur}) )
@@ -1880,6 +1911,7 @@ _VBoxManage() {
[[ ${#COMPREPLY[@]} -eq 0 ]] && \ [[ ${#COMPREPLY[@]} -eq 0 ]] && \
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) )
;; ;;
showmediuminfo) showmediuminfo)
if [[ ${prev} == ${cmd} ]]; then if [[ ${prev} == ${cmd} ]]; then
COMPREPLY=( $(compgen -W "disk dvd floppy" -- ${cur}) ) COMPREPLY=( $(compgen -W "disk dvd floppy" -- ${cur}) )