zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] local scope cmds_<1-6> parameters in _btrfs
@ 2013-10-08 16:52 Eric Cook
  2013-10-08 16:58 ` llua
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Cook @ 2013-10-08 16:52 UTC (permalink / raw)
  To: zsh-workers

---
 Completion/Linux/Command/_btrfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Linux/Command/_btrfs b/Completion/Linux/Command/_btrfs
index eac8270..da2514e 100644
--- a/Completion/Linux/Command/_btrfs
+++ b/Completion/Linux/Command/_btrfs
@@ -1,7 +1,7 @@
 #compdef btrfs
 
 local curcontext="$curcontext" curstate state line expl grp cmd ret=1
-local -a groups args
+local -a groups args cmds_1 cmds_2 cmds_3 cmds_4 cmds_5 cmds_6
 
 groups=( subvolume filesystem device scrub balance inspect-internal help version )
 cmds_1=( create delete list snapshot get-default set-default find-new help )
-- 
1.8.4


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

* Re: [PATCH] local scope cmds_<1-6> parameters in _btrfs
  2013-10-08 16:52 [PATCH] local scope cmds_<1-6> parameters in _btrfs Eric Cook
@ 2013-10-08 16:58 ` llua
  0 siblings, 0 replies; 2+ messages in thread
From: llua @ 2013-10-08 16:58 UTC (permalink / raw)
  To: zsh-workers

On 10/08/2013 12:52 PM, Eric Cook wrote:
> ---
>  Completion/Linux/Command/_btrfs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Completion/Linux/Command/_btrfs b/Completion/Linux/Command/_btrfs
> index eac8270..da2514e 100644
> --- a/Completion/Linux/Command/_btrfs
> +++ b/Completion/Linux/Command/_btrfs
> @@ -1,7 +1,7 @@
>  #compdef btrfs
>  
>  local curcontext="$curcontext" curstate state line expl grp cmd ret=1
> -local -a groups args
> +local -a groups args cmds_1 cmds_2 cmds_3 cmds_4 cmds_5 cmds_6
>  
>  groups=( subvolume filesystem device scrub balance inspect-internal help version )
>  cmds_1=( create delete list snapshot get-default set-default find-new help )
Appears the body part of the email didn't go through, I noticed that
after using _btrfs interactively, a few new parameters were created.
>From the testing i did, making them local to the completion script
doesn't break anything.


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

end of thread, other threads:[~2013-10-08 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-08 16:52 [PATCH] local scope cmds_<1-6> parameters in _btrfs Eric Cook
2013-10-08 16:58 ` llua

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).