forked from mirrored-repos/manjaro-tools
update completions
This commit is contained in:
parent
4256ba1f1e
commit
51d32ecf9d
2 changed files with 28 additions and 2 deletions
|
@ -66,4 +66,25 @@ _chroot-run() {
|
|||
true
|
||||
} &&
|
||||
complete -F _chroot-run chroot-run
|
||||
|
||||
_build-set() {
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
_get_comp_words_by_ref cur
|
||||
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '-a -b -p -c -r -w -s -h' -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
_filedir
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
true
|
||||
} &&
|
||||
complete -F _build-set build-set
|
||||
|
||||
|
||||
# ex:et ts=2 sw=2 ft=sh
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
m4_include(lib/valid-tags.sh)
|
||||
|
||||
_build_set_args=(
|
||||
'-c[Recreate the chroot before building]'
|
||||
'-r[Create chroots in this directory]:base_dir:_files -/'
|
||||
'-c[Recreate chroot]'
|
||||
'-r[Chroots directory]:base_dir:_files -/'
|
||||
'-b[Set branch]:branch:_branch -/'
|
||||
'-a[Set arch]:arch:_arch -/'
|
||||
'-p[Set profile or pkg]:base_dir:_files -/'
|
||||
'-w[Clean up]'
|
||||
'-s[Sign packages]'
|
||||
)
|
||||
|
||||
_chroot_run_args=(
|
||||
|
|
Loading…
Reference in a new issue