From e0f82d394717efb28537f0a366b4a5b3515354b6 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Thu, 28 Nov 2019 21:50:15 +0100 Subject: completion: add makerepropkg zsh completion --- zsh_completion.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh_completion.in b/zsh_completion.in index 1c7862e..a1225aa 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -1,4 +1,4 @@ -#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco checkpkg sogrep offload-build +#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco checkpkg sogrep offload-build makerepropkg # License: Unspecified m4_include(lib/valid-tags.sh) @@ -93,6 +93,13 @@ _offload_build_args=( '(-h --help)'{-h,--help}'[Display usage]' ) +_makerepropkg_args=( + '-c[Set pacman cache]:pacman_cache:_files -/' + '-M[Location of a makepkg config file]:makepkg_config:_files -g "*.conf(.)"' + '-h[Display usage]' + '1:working_dir:_files -g "*.pkg.tar.*(.)"' +) + _devtools_completions_all_packages() { typeset -U packages packages=($(_call_program packages pacman -Sql)) -- cgit v1.2.3-70-g09d2