Improve safety and CLI fidelity for everyday use
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>
This commit is contained in:
co-authored by
Frank Vitrano
parent
d0f2cfe335
commit
bba71040d6
@@ -6,7 +6,7 @@ _miaur() {
|
||||
prev=${COMP_WORDS[COMP_CWORD - 1]}
|
||||
|
||||
local ops='-S -Syu -Sua -Ss -Si -Sc -Q -Qua -Qm -R -Rns -G -Gp -B -Bi -h -V'
|
||||
local longs='--aur --repo --skipreview --cleanafter --removemake --noremovermake --bottomup --topdown --clonedir --mflags --sudoloop --nosudoloop --help --version'
|
||||
local longs='--aur --repo --skipreview --cleanafter --removemake --noremovemake --noremovermake --bottomup --topdown --clonedir --mflags --sudoloop --nosudoloop --noconfirm --help --version'
|
||||
|
||||
case "$prev" in
|
||||
-S | -Si | -Ss | -G | -Gp | -R | -Rns | -Qi)
|
||||
|
||||
@@ -17,6 +17,8 @@ _miaur() {
|
||||
'--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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user