zsh-workers
 help / color / mirror / code / Atom feed
* FYI: Cobra Library for CLI Interfaces
@ 2017-07-10  8:56 Marko Myllynen
  0 siblings, 0 replies; only message in thread
From: Marko Myllynen @ 2017-07-10  8:56 UTC (permalink / raw)
  To: zsh workers

FYI,

I came across Cobra Go library which is used by some rather high profile
projects, for example Docker/Moby, etcd, Kubernetes, and OpenShift (oc),
it allows to generate bash completions for these tools:

https://github.com/spf13/cobra
https://github.com/spf13/cobra/blob/master/bash_completions.md
https://github.com/spf13/cobra/blob/master/bash_completions.go

It kind of supports zsh as well (see [1] for an example of oc(1)
completions) but in a manner limited to bash features so not taking
advantage of zsh compsys in any way. Not sure if anyone here knows more
about Cobra or even would have a chance to contribute to it to enhance
its zsh completion support.

1) https://github.com/openshift/origin/tree/master/contrib/completions/zsh

Cheers,

-- 
Marko Myllynen


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-10  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10  8:56 FYI: Cobra Library for CLI Interfaces Marko Myllynen

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