Drop default --noconfirm (opt-in via --noconfirm), fix --noremovemake, forward pacman argv intact for -R/-D/-F/-T/-U, deepen PKGBUILD review, show an install plan before building, and add shellcheck CI plus unit tests. Co-authored-by: Frank Vitrano <WHC2006@users.noreply.github.com>
30 lines
665 B
Bash
30 lines
665 B
Bash
#compdef miaur
|
|
|
|
_miaur() {
|
|
local -a ops
|
|
ops=(
|
|
'-Syu:upgrade repository and AUR packages'
|
|
'-Sua:upgrade AUR packages only'
|
|
'-Ss:search packages'
|
|
'-Si:show package information'
|
|
'-S:install a package'
|
|
'-Qua:list AUR upgrades'
|
|
'-G:download a PKGBUILD'
|
|
'-Gp:print a PKGBUILD'
|
|
'-Bi:build and install'
|
|
'-Sc:clean caches'
|
|
'-Rns:remove a package'
|
|
'--aur:use the AUR only'
|
|
'--repo:use repositories only'
|
|
'--skipreview:skip PKGBUILD review'
|
|
'--noremovemake:keep make dependencies'
|
|
'--noconfirm:bypass confirmation prompts'
|
|
'--bottomup:show AUR results first'
|
|
'--help:show help'
|
|
)
|
|
_arguments '*:package:_files' \
|
|
"${ops[@]}"
|
|
}
|
|
|
|
_miaur
|