forked from kiss-community/kiss
kiss: arg clean up
This commit is contained in:
parent
47d057a52c
commit
caff0ef981
11
kiss
11
kiss
@ -1600,18 +1600,13 @@ args() {
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
i|install|r|remove)
|
i|install) for pkg do pkg_install "$pkg"; done ;;
|
||||||
case $action in
|
|
||||||
i*) for pkg do pkg_install "$pkg"; done ;;
|
|
||||||
r*) for pkg in $redro; do pkg_remove "$pkg"; done
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
|
|
||||||
b|build) pkg_build_all "${@:?No packages installed}" ;;
|
b|build) pkg_build_all "${@:?No packages installed}" ;;
|
||||||
d|download) for pkg do pkg_source "$pkg"; done ;;
|
d|download) for pkg do pkg_source "$pkg"; done ;;
|
||||||
l|list) pkg_list "$@" ;;
|
l|list) pkg_list "$@" ;;
|
||||||
u|update) pkg_updates ;;
|
r|remove) for pkg in $redro; do pkg_remove "$pkg"; done ;;
|
||||||
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
||||||
|
u|update) pkg_updates ;;
|
||||||
v|version) printf '5.4.7\n' ;;
|
v|version) printf '5.4.7\n' ;;
|
||||||
|
|
||||||
'')
|
'')
|
||||||
|
Loading…
Reference in New Issue
Block a user