updated help

This commit is contained in:
wt
2025-01-20 17:00:40 +07:00
parent 9f0f903c5e
commit fb463d418d
+14 -13
View File
@@ -49,8 +49,6 @@ checkroot() {
exit 1
fi
}
checkroot
#------------------------------------------------------------------------
#----------------- add(install) package function ------------------------
@@ -271,16 +269,17 @@ q() {
help() {
printf "
$YELLOW**$GREEN pm usage$RESET :
$BWHITE pm add [package name] - download and install from repository
pm unpack [/path/to/package/archive] - unpack(install) from local package archive
pm down [package name] - download package from repository without install
pm del [package name] - delete package
pm list [package name] - list files in package
pm search [package name] - search package in repository
pm query - show installed packages
pm help - this help message
pm clear - clear all package archives from cached packages directory
pm sync - synchronize repository
$BWHITE add, a [package name] - download and install from repository
unpack, u [/path/to/package/archive] - unpack(install) from local package archive
down, download [package name] - download package from repository without install
del, d [package name] - delete package
list, l [package name] - list files in package
search, ss [package name] - search package in repository
query, q - show installed packages
help - this help message
clear - clear all package archives from cached packages directory
sync, s - synchronize repository
deps [package name] - show package dependencies
$YELLOW**$GREEN examples$RESET :
$BWHITE pm add dnsmasq
@@ -368,9 +367,11 @@ deps() {
case "$1" in
add|a|del|d)
checkroot
"$1" $@
;;
query|q|help|s|sync|clear|ss|search|list|l|unpack|u|down|download|deps)
query|q|s|sync|clear|ss|search|list|l|unpack|u|down|download|deps)
checkroot
"$1" $2
;;
*)