feat(install-script): list command to list targets

This commit is contained in:
TheK4n 2023-10-12 00:37:44 +03:00
parent 525d073bcb
commit 691c7fef6c

View File

@ -213,6 +213,10 @@ cmd_check() {
done done
} }
cmd_list() {
echo "${!TARGETS[@]}"
}
cmd_install() { cmd_install() {
for target in "$@"; do for target in "$@"; do
case "$target" in case "$target" in
@ -249,6 +253,7 @@ case "$1" in
install) shift; cmd_install "$@" ;; install) shift; cmd_install "$@" ;;
unlink) shift; cmd_unlink "$@" ;; unlink) shift; cmd_unlink "$@" ;;
check) shift; cmd_check "$@" ;; check) shift; cmd_check "$@" ;;
list) shift; cmd_list "$@" ;;
help) shift; cmd_help "$@" ;; help) shift; cmd_help "$@" ;;
*) shift; cmd_help "$@" ;; *) shift; cmd_help "$@" ;;
esac esac