diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2019-09-14 00:33:11 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-09-28 00:16:25 +0200 |
commit | 74f65db396038caafcba20e4302fba080d8cc100 (patch) | |
tree | a402d2b1c28e2d5a7121549d68c7ef6ecce4e99f | |
parent | 64b7d995040fc670aaed5fbd048157b3feba0574 (diff) | |
download | devtools32-74f65db396038caafcba20e4302fba080d8cc100.tar.xz |
zsh_completion: add offload-build completion
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
-rw-r--r-- | zsh_completion.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/zsh_completion.in b/zsh_completion.in index 72dbfa3..4316b5a 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -1,9 +1,11 @@ -#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 +#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 # License: Unspecified m4_include(lib/valid-tags.sh) m4_include(lib/valid-repos.sh) +_binary_arch=${_arch[*]:0:-1} + _archbuild_args=( '-c[Recreate the chroot before building]' '-r[Create chroots in this directory]:base_dir:_files -/' @@ -83,6 +85,13 @@ _sogrep_args=( '2:libname' ) +_offload_build_args=( + '(-r --repo)'{-r,--repo}'[Build against a specific repository]:repo:($_build_repos[*])' + '(-a --arch)'{-a,--arch}'[Build against a specific architecture]:arch:(${_binary_arch[*]})' + '(-s --server)'{-s,--server}'[Offload to a specific Build server]:server:' + '(-h --help)'{-h,--help}'[Display usage]' +) + _devtools_completions_all_packages() { typeset -U packages packages=($(_call_program packages pacman -Sql)) |