Merge pull request 'updated help' (#9) from update-help into main
Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/pm/pulls/9
This commit was merged in pull request #9.
This commit is contained in:
commit
feded5e14e
1 file changed
+14
-13
@@ -49,8 +49,6 @@ checkroot() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
checkroot
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
#----------------- add(install) package function ------------------------
|
#----------------- add(install) package function ------------------------
|
||||||
@@ -271,16 +269,17 @@ q() {
|
|||||||
help() {
|
help() {
|
||||||
printf "
|
printf "
|
||||||
$YELLOW**$GREEN pm usage$RESET :
|
$YELLOW**$GREEN pm usage$RESET :
|
||||||
$BWHITE pm add [package name] - download and install from repository
|
$BWHITE add, a [package name] - download and install from repository
|
||||||
pm unpack [/path/to/package/archive] - unpack(install) from local package archive
|
unpack, u [/path/to/package/archive] - unpack(install) from local package archive
|
||||||
pm down [package name] - download package from repository without install
|
down, download [package name] - download package from repository without install
|
||||||
pm del [package name] - delete package
|
del, d [package name] - delete package
|
||||||
pm list [package name] - list files in package
|
list, l [package name] - list files in package
|
||||||
pm search [package name] - search package in repository
|
search, ss [package name] - search package in repository
|
||||||
pm query - show installed packages
|
query, q - show installed packages
|
||||||
pm help - this help message
|
help - this help message
|
||||||
pm clear - clear all package archives from cached packages directory
|
clear - clear all package archives from cached packages directory
|
||||||
pm sync - synchronize repository
|
sync, s - synchronize repository
|
||||||
|
deps [package name] - show package dependencies
|
||||||
|
|
||||||
$YELLOW**$GREEN examples$RESET :
|
$YELLOW**$GREEN examples$RESET :
|
||||||
$BWHITE pm add dnsmasq
|
$BWHITE pm add dnsmasq
|
||||||
@@ -368,9 +367,11 @@ deps() {
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
add|a|del|d)
|
add|a|del|d)
|
||||||
|
checkroot
|
||||||
"$1" $@
|
"$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
|
"$1" $2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in new issue
Block a user