Update 'kfg'

This commit is contained in:
2023-05-03 13:31:42 +02:00
parent cf95dcce21
commit 90d505a731

30
kfg
View File

@@ -4,19 +4,25 @@ NAME="kfg"
VERSION="0.1" VERSION="0.1"
function show_help { function show_help {
echo -en "Usage: $NAME v$VERSION [cmd] [ -y | --yes ] [ -h | --help ] [ -m | --arch ARCH-STRING ] [ -d | --debug ]\n" echo "$NAME v$VERSION"
echo -en "Available commands: echo -e "Usage: $NAME cmd [ opt ]\n"
\tupdate\t\t Update the tool echo -en "cmd := {
\tinstall\t\t Install configs :) \t$INFOupdate$ENDCOLOR \t\t Update the tool,
\tversion\t\t Print the version number \t$INFOinstall$ENDCOLOR \t\t Install configs :),
\n" \t$INFOversion$ENDCOLOR \t\t Print the version number
}\n"
echo -en "Available options: echo -en "opt := {
-h | --help \t\t Show this help $INFO-h$ENDCOLOR | $INFO--help$ENDCOLOR \t\t Show this help,
-y | --yes \t\t Skip confirmation questions $INFO-y$ENDCOLOR | $INFO--yes$ENDCOLOR \t\t Skip confirmation questions,
-m | --arch STRING \t Set the architecture string to be used when downloading files from repositories. Most common are "amd64", "arm64", "armhf", etc... $INFO-m$ENDCOLOR | $INFO--arch STRING$ENDCOLOR \t Set the architecture string to be used when downloading files from repositories. Most common are "amd64", "arm64", "armhf", etc,
-d | --debug\t\t Print debug output $INFO-d$ENDCOLOR | $INFO--debug$ENDCOLOR\t\t Print debug output,
" $INFO-c$ENDCOLOR \t\t\t Install config files,
$INFO-r$ENDCOLOR \t\t\t Add configs into the RC file,
$INFO-b$ENDCOLOR \t\t\t Install binaries depending on the ARCH,
$INFO-z$ENDCOLOR \t\t\t Set shell to zsh,
$INFO-a$ENDCOLOR \t\t\t Just install everything
}"
exit 2 exit 2
} }