|
@ -2,7 +2,7 @@ |
|
|
set -e -u |
|
|
set -e -u |
|
|
|
|
|
|
|
|
show_help() { |
|
|
show_help() { |
|
|
echo 'Usage: packages command [arguments]' |
|
|
echo 'Usage: pkg command [arguments]' |
|
|
echo '' |
|
|
echo '' |
|
|
echo 'A tool for managing packages. Commands:' |
|
|
echo 'A tool for managing packages. Commands:' |
|
|
echo '' |
|
|
echo '' |
|
@ -33,6 +33,6 @@ case "$CMD" in |
|
|
sh*) apt show $@;; |
|
|
sh*) apt show $@;; |
|
|
un*|rem*|rm|del*) apt remove $@;; |
|
|
un*|rem*|rm|del*) apt remove $@;; |
|
|
up*) apt update; apt full-upgrade;; |
|
|
up*) apt update; apt full-upgrade;; |
|
|
*) echo "Unknown command: '$CMD' (run 'packages help' for usage information)";; |
|
|
*) echo "Unknown command: '$CMD' (run 'pkg help' for usage information)";; |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
|