termux-tools: Allow shorter forms in packages
This commit is contained in:
parent
9654ae303d
commit
9d99cc6543
@ -1,6 +1,6 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
||||
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
||||
TERMUX_PKG_VERSION=0.39
|
||||
TERMUX_PKG_VERSION=0.40
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
|
||||
TERMUX_PKG_CONFFILES="etc/motd"
|
||||
|
||||
|
@ -22,15 +22,15 @@ CMD="$1"
|
||||
shift 1
|
||||
|
||||
case "$CMD" in
|
||||
help) show_help;;
|
||||
install) apt update; apt install $@;;
|
||||
list-all) apt list $@;;
|
||||
list-installed) apt list --installed $@;;
|
||||
reinstall) apt install --reinstall $@;;
|
||||
search) apt update; apt search $@;;
|
||||
show) apt show $@;;
|
||||
uninstall|remove) apt remove $@;;
|
||||
update|upgrade) apt update; apt full-upgrade;;
|
||||
h*) show_help;;
|
||||
i*) apt update; apt install $@;;
|
||||
list-a*) apt list $@;;
|
||||
list-i*) apt list --installed $@;;
|
||||
re*) apt install --reinstall $@;;
|
||||
se*) apt update; apt search $@;;
|
||||
sh*) apt show $@;;
|
||||
un*|rem*|rm|del*) apt remove $@;;
|
||||
up*) apt update; apt full-upgrade;;
|
||||
*) echo "Unknown command: '$CMD' (run 'packages help' for usage information)";;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user