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

Re: What is the _services array?



> On 27 May 2022 at 13:45 Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Peter Stephenson wrote on Fri, 27 May 2022 09:52 +00:00:
> >> On 27 May 2022 at 10:09 Zach Riggle <zachriggle@xxxxxxxxx> wrote:
> >> I recently found the _services array by playing around with "typeset -H"
> >> and there's some neat stuff in here, I'm just not sure what it's for or how
> >> to make use of it.
> >> 
> >> Any ideas?
> >
> > This is the backend DB for the feature described in the zshcompsys manual
> > in the paragraph that starts
> >
> > "Each  name may also be of the form `cmd=service'.  "
> >
> > You should be able to be configure it by the means noted there.
> 
> It's not documented, though, which means it's liable to change
> incompatibly without notice.  If that's not the case, then we should
> document that function :)

My inclination would be that if Zach finds things he can do with _services
that aren't part of the existing interface, we should probably extend the
interface rather than expose the implementation detail.  But, of course,
it's horse for courses.

pws




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