From: Christian Ebner Date: Fri, 8 Feb 2019 15:43:10 +0000 (+0100) Subject: Fix 1891: Add zsh completion generator X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=52ea7743436a7026b33870034bbc666acdc95376;hp=742e92ef45cb1a8b6b98946959f6d36abc5ac9e9 Fix 1891: Add zsh completion generator This adds the generator needed for the autogeneration of zsh completion scripts analogous to the generator creating the bash completion scripts. In order to generate zsh completion scripts for other packages, a package including this patch as well as the package in pve-common with the corresponding patch have to be installed on the build system. Signed-off-by: Christian Ebner --- diff --git a/pve-doc-generator.mk.in b/pve-doc-generator.mk.in index d67d1c5..5f9965d 100644 --- a/pve-doc-generator.mk.in +++ b/pve-doc-generator.mk.in @@ -53,6 +53,14 @@ endif perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp mv $@.tmp $@ +%.service-zsh-completion: + perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->generate_zsh_completions();" >$@.tmp + mv $@.tmp $@ + +%.zsh-completion: + perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_zsh_completions();" >$@.tmp + mv $@.tmp $@ + %.service-api-verified: perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->verify_api();" touch $@