diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-05-09 00:17:04 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-05-09 00:17:04 +0200 |
commit | 09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7 (patch) | |
tree | 601415774d4ab34958807bc0872322d9062a59a0 /Completion/BSD/Command/_vmctl | |
parent | ffacb17886e8071332c0b1dc8263e7dbe6af268a (diff) | |
download | zsh-09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7.tar.gz zsh-09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7.tar.xz zsh-09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7.zip |
44279: completion updates for Dragonfly 5.4, FreeBSD 12 and OpenBSD 6.5
Diffstat (limited to 'Completion/BSD/Command/_vmctl')
-rw-r--r-- | Completion/BSD/Command/_vmctl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Completion/BSD/Command/_vmctl b/Completion/BSD/Command/_vmctl index 66d9081b0..d22657310 100644 --- a/Completion/BSD/Command/_vmctl +++ b/Completion/BSD/Command/_vmctl @@ -29,6 +29,7 @@ subcommands=( start:'start a VM' stop:'stop a VM' unpause:'resume a VM' + wait:'wait until specified VM has stopped' ) if (( CURRENT == 2 )); then @@ -37,7 +38,7 @@ else local curcontext="${curcontext%:*}-${words[2]}:" shift words; (( CURRENT-- )) case $words[1] in - console|pause|send|show|status|unpause) + console|pause|send|show|status|unpause|wait) _vm_names ;; create) @@ -50,7 +51,8 @@ else shift words; (( CURRENT-- )) _arguments \ '-s+[specify size]:size' \ - '-b+[specify base disk]:base image:_files' + '(-i)-b+[specify base disk]:base image:_files' + '(-b)-i+[copy and convert input disk]:disk image:_files' fi ;; load) @@ -75,14 +77,15 @@ else else shift words; (( CURRENT-- )) _arguments -s \ + '-B+[force system to boot from specified device for this boot]:device:(cdrom disk net)' \ '-b+[boot with the specified kernel or BIOS image]:boot image:_files' \ '-c[automatically connect to the VM console]' \ '*-d+[disk image file]:disk image:_files' \ '-i+[number of network interfaces]:number: ' \ '-L[add a local network interface]' \ - '-m+[memory size in megabytes]:megabytes: ' \ + '-m+[specify memory size]:memory size (megabytes) [512]' \ '-n+[specify switch to attach]: :_vm_switches' \ - '-r+[ISO image file for virtual CD-ROM]:ISO image:_files' \ + '-r+[specify ISO image file for virtual CD-ROM]:ISO image:_files -g "*.iso(-.)"' \ '-t+[use existing VM as a template]: :_vm_names' fi ;; @@ -98,5 +101,8 @@ else '-w[wait until the VM has been terminated]' fi ;; + *) + _default + ;; esac fi |