From 90d505a731fbb7a5838253df82be713933a9bf78 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Wed, 3 May 2023 13:31:42 +0200 Subject: [PATCH] Update 'kfg' --- kfg | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/kfg b/kfg index 4066b12..3ecbcab 100644 --- a/kfg +++ b/kfg @@ -4,19 +4,25 @@ NAME="kfg" VERSION="0.1" function show_help { - echo -en "Usage: $NAME v$VERSION [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 :) - \tversion\t\t Print the version number -\n" + echo "$NAME v$VERSION" + echo -e "Usage: $NAME cmd [ opt ]\n" + echo -en "cmd := { + \t$INFOupdate$ENDCOLOR \t\t Update the tool, + \t$INFOinstall$ENDCOLOR \t\t Install configs :), + \t$INFOversion$ENDCOLOR \t\t Print the version number +}\n" - echo -en "Available options: - -h | --help \t\t Show this help - -y | --yes \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... - -d | --debug\t\t Print debug output -" + echo -en "opt := { + $INFO-h$ENDCOLOR | $INFO--help$ENDCOLOR \t\t Show this help, + $INFO-y$ENDCOLOR | $INFO--yes$ENDCOLOR \t\t Skip confirmation questions, + $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, + $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 }