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 <c.ebner@proxmox.com>
perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
mv $@.tmp $@
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 $@
%.service-api-verified:
perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->verify_api();"
touch $@