Date: Sunday, July 11, 2021 @ 00:42:27 Author: kpcyrd Revision: 976511
upgpkg: vultr-cli 2.6.0-2 - add shell completions Modified: vultr-cli/trunk/PKGBUILD ----------+ PKGBUILD | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-07-10 22:23:32 UTC (rev 976510) +++ PKGBUILD 2021-07-11 00:42:27 UTC (rev 976511) @@ -2,7 +2,7 @@ pkgname=vultr-cli pkgver=2.6.0 -pkgrel=1 +pkgrel=2 pkgdesc='Official command line tool for Vultr services' url='https://github.com/vultr/vultr-cli' arch=('x86_64') @@ -26,6 +26,16 @@ package() { cd ${pkgname}-${pkgver} install -Dm 755 vultr-cli -t "${pkgdir}/usr/bin" + + install -d "${pkgdir}/usr/share/bash-completion/completions" \ + "${pkgdir}/usr/share/zsh/site-functions" \ + "${pkgdir}/usr/share/fish/vendor_completions.d" + + # workaround, see https://github.com/vultr/vultr-cli/issues/92#issuecomment-877722219 + export VULTR_API_KEY=x + ./vultr-cli completion bash > "${pkgdir}/usr/share/bash-completion/completions/vultr-cli" + ./vultr-cli completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_vultr-cli" + ./vultr-cli completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/vultr-cli.fish" } # vim: ts=2 sw=2 et: