Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] completion _libvirt



Hey,

I am not sure why there are commands that are also only valid for
running domains but use " " instead of --state-running (e.g. reboot/reset) but
i rather used the --state-running to make it obvious ¯\_(ツ)_/¯.

grüße,
Christopher



* extend $dom_opts with additional only running state commands.
---
 Completion/Unix/Command/_libvirt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Completion/Unix/Command/_libvirt
b/Completion/Unix/Command/_libvirt index 9c10f71e8..7ac26e2ba 100644
--- a/Completion/Unix/Command/_libvirt
+++ b/Completion/Unix/Command/_libvirt
@@ -19,7 +19,21 @@ interact_cmds=(cd echo exit quit connect)
 typeset -A dom_opts
 dom_opts=(
   console --state-running
+  cpu-stats --state-running
   destroy " "
+  domblkstat --state-running
+  domfsfreeze --state-running
+  domfsthaw --state-running
+  domfstrim --state-running
+  domifaddr --state-running
+  domifstat --state-running
+  domlaunchsecinfo --state-running
+  dommemstat --state-running
+  dompmsuspend --state-running
+  dompmwakeup --state-running
+  get-user-sshkeys --state-running
+  guestinfo --state-running
+  guestvcpus --state-running
   managedsave " "
   reboot " "
   reset " "
@@ -27,6 +41,7 @@ dom_opts=(
   save " "
   screenshot " "
   send-key " "
+  set-user-sshkeys --state-running
   shutdown --state-running
   start --inactive
   suspend --state-running
-- 
2.53.0





Messages sorted by: Reverse Date, Date, Thread, Author