about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarko Myllynen <myllynen@redhat.com>2017-05-10 10:58:39 +0300
committerPeter Stephenson <pws@zsh.org>2017-05-22 14:58:49 +0100
commiteacb87988ee83e7ca79c27c9fd2e3ad67d703108 (patch)
treee630d1f3ee28f70ec3070b30f95404e49567fef4
parentd14686860d5e3cb0acc0d4a1ae962c55ad74f04f (diff)
downloadzsh-eacb87988ee83e7ca79c27c9fd2e3ad67d703108.tar.gz
zsh-eacb87988ee83e7ca79c27c9fd2e3ad67d703108.tar.xz
zsh-eacb87988ee83e7ca79c27c9fd2e3ad67d703108.zip
41086: Update librt completions
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_libvirt5
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 77ed70466..2ceb91cce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-05-22  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* Marko Myllenen: 41086: Completion/Unix/Command/_libvirt:
+	update completion.
+
 	* Marko Myllenen: 41085: Completion/Unix/Command/_openstack:
 	update completion.
 
diff --git a/Completion/Unix/Command/_libvirt b/Completion/Unix/Command/_libvirt
index 1aa8ed817..a3ab5a68a 100644
--- a/Completion/Unix/Command/_libvirt
+++ b/Completion/Unix/Command/_libvirt
@@ -20,6 +20,7 @@ typeset -A dom_opts
 dom_opts=(
   console " "
   destroy " "
+  edit " "
   managedsave " "
   reboot " "
   reset " "
@@ -95,7 +96,7 @@ case $service in
       '(- *)'{-h,--help}'[print help information and exit]' \
       '(- *)'{-v,--version}'[print version information and exit]' \
       '(- *)'{-q,--quiet}'[quiet mode]' \
-      '1:hv-type:(qemu lxc)' && return
+      '1:hv-type:(qemu lxc bhyve)' && return
   ;;
   virt-pki-validate)
     _arguments -A "-*" -S \
@@ -197,7 +198,7 @@ case $state in
       return 1
     fi
     # Allow passing domain without --domain with few of the most used commands
-    if [[ $cmd == (destroy|reboot|reset|start|shutdown) ]]; then
+    if [[ $cmd == (destroy|edit|reboot|reset|start|shutdown) ]]; then
       if [[ $words[CURRENT-1] == $cmd ]]; then
         values=( $(_call_program domains "noglob virsh $conn_opt list ${dom_opts[$cmd]:-"--all"} --name") )
         [[ -n $values ]] && _wanted domains expl domain compadd ${=values} && return 0