Update 'kfg'

This commit is contained in:
2023-05-03 13:16:54 +02:00
parent 77fa735854
commit 4909496322

10
kfg
View File

@@ -6,8 +6,9 @@ VERSION="0.1"
function show_help {
echo -en "Usage: $NAME [cmd] [ -y | --yes ] [ -h | --help ] [ -m | --arch ARCH-STRING ] [ -d | --debug ]\n"
echo -en "Available commands:
\tupdate\t\t update the tool
\tinstall\t\t install configs :)
\tupdate\t\t Update the tool
\tinstall\t\t Install configs :)
\tversion\t\t Print the version number
\n"
echo -en "Available options:
@@ -20,6 +21,10 @@ function show_help {
exit 2
}
function version {
echo "v$VERSION"
}
function log {
color $1 "[$2]"
echo "$3"
@@ -406,6 +411,7 @@ RC_FILE=".zshrc"
case "$1" in
update) update ;;
version) version ;;
install) install; shift ;;
# -- means the end of the arguments; drop this, and break out of the while loop
--) shift; break ;;