zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] completion libvirt: edit action is always allowed
@ 2023-06-09  8:59 sergio
  2023-08-21 10:13 ` sergio
  0 siblings, 1 reply; 6+ messages in thread
From: sergio @ 2023-06-09  8:59 UTC (permalink / raw)
  To: zsh-workers

libvirt allows to edit virtrual host in any state

-- 
sergio.


diff --git a/Completion/Unix/Command/_libvirt 
b/Completion/Unix/Command/_libvirt
index a3ab5a68a..8bd3e1e6b 100644
--- a/Completion/Unix/Command/_libvirt
+++ b/Completion/Unix/Command/_libvirt
@@ -20,7 +20,7 @@ typeset -A dom_opts
  dom_opts=(
    console " "
    destroy " "
-  edit " "
+  edit --all
    managedsave " "
    reboot " "
    reset " "


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] completion libvirt: edit action is always allowed
  2023-06-09  8:59 [PATCH] completion libvirt: edit action is always allowed sergio
@ 2023-08-21 10:13 ` sergio
  2023-08-22  6:54   ` Jun T
  0 siblings, 1 reply; 6+ messages in thread
From: sergio @ 2023-08-21 10:13 UTC (permalink / raw)
  To: zsh-workers

Why this still has not been merged?


On 09/06/2023 11:59, sergio wrote:
> libvirt allows to edit virtrual host in any state
> 

-- 
sergio.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] completion libvirt: edit action is always allowed
  2023-08-21 10:13 ` sergio
@ 2023-08-22  6:54   ` Jun T
  2023-08-23 21:01     ` sergio
  0 siblings, 1 reply; 6+ messages in thread
From: Jun T @ 2023-08-22  6:54 UTC (permalink / raw)
  To: zsh-workers


> 2023/08/21 19:13, sergio <sergio@outerface.net> wrote:
> 
> Why this still has not been merged?

Sorry, I guess everyone here has thought that someone else
would take care of it.

> 2023/06/09 17:5, sergio <sergio@outerface.net> wrote:
> 
> libvirt allows to edit virtrual host in any state

> -  edit " "
> +  edit --all

I'm not familiar with virsh, but if --all is the correct option
to use then we can just remove dom_opts[edit] since the array
is used as ${dom_opts[$cmd]:-"--all"}.


diff --git a/Completion/Unix/Command/_libvirt b/Completion/Unix/Command/_libvirt
index a3ab5a68a..bd605b9c9 100644
--- a/Completion/Unix/Command/_libvirt
+++ b/Completion/Unix/Command/_libvirt
@@ -20,7 +20,6 @@ typeset -A dom_opts
 dom_opts=(
   console " "
   destroy " "
-  edit " "
   managedsave " "
   reboot " "
   reset " "




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] completion libvirt: edit action is always allowed
  2023-08-22  6:54   ` Jun T
@ 2023-08-23 21:01     ` sergio
  2023-08-24  1:56       ` Jun. T
  0 siblings, 1 reply; 6+ messages in thread
From: sergio @ 2023-08-23 21:01 UTC (permalink / raw)
  To: zsh-workers

On 22/08/2023 09:54, Jun T wrote:

> I'm not familiar with virsh, but if --all is the correct option
> to use then we can just remove dom_opts[edit] since the array
> is used as ${dom_opts[$cmd]:-"--all"}.

No, no. When I do `virsh shutdown` or `virsh console` I would like to 
only active guests (that are shown with `virsh list`). `--all` shows 
all, including powered off.

-- 
sergio.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] completion libvirt: edit action is always allowed
  2023-08-23 21:01     ` sergio
@ 2023-08-24  1:56       ` Jun. T
  2023-08-24 11:10         ` sergio
  0 siblings, 1 reply; 6+ messages in thread
From: Jun. T @ 2023-08-24  1:56 UTC (permalink / raw)
  To: zsh-workers


> 2023/08/24 6:01、sergio <sergio@outerface.net>のメール:
> 
> On 22/08/2023 09:54, Jun T wrote:
> 
>> I'm not familiar with virsh, but if --all is the correct option
>> to use then we can just remove dom_opts[edit] since the array
>> is used as ${dom_opts[$cmd]:-"--all"}.
> 
> No, no. When I do `virsh shutdown` or `virsh console` I would like to only active guests (that are shown with `virsh list`). `--all` shows all, including powered off.

dom_opts has entries for shutdown and cosole subcommands:
dom_opt[shutdown]='--state-running'
dom_opt[console]=' '

--all is used if dom_opt[subcmd] does not exists.
If you want to use -all for the subcommand 'edit', then
you can just remove dom_opt[edit].

Could you please confirm that your patch and mine give the
same list of domains for edit subcommand?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] completion libvirt: edit action is always allowed
  2023-08-24  1:56       ` Jun. T
@ 2023-08-24 11:10         ` sergio
  0 siblings, 0 replies; 6+ messages in thread
From: sergio @ 2023-08-24 11:10 UTC (permalink / raw)
  To: zsh-workers


> Could you please confirm that your patch and mine give the
> same list of domains for edit subcommand?

Oh, sorry, I was wrong. Yes, I tested and confirm our patches does the 
same! Yours probably better, as more clean.

-- 
sergio.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-24 11:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09  8:59 [PATCH] completion libvirt: edit action is always allowed sergio
2023-08-21 10:13 ` sergio
2023-08-22  6:54   ` Jun T
2023-08-23 21:01     ` sergio
2023-08-24  1:56       ` Jun. T
2023-08-24 11:10         ` sergio

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).