From 4b80a15e05cfc3d714c64101c5cae1eabe7bdd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 26 Apr 2024 04:33:23 +0300 Subject: [PATCH] Build --- wx | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100755 wx diff --git a/wx b/wx new file mode 100755 index 0000000..b901c9c --- /dev/null +++ b/wx @@ -0,0 +1,97 @@ +#!/bin/bash + +if [ ! "$BASH_VERSION" ] ; then + bash $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 + exit 1 +fi + +warencli-syntax-line-douple() { +echo -n " +============================== +" +} + +warencli-syntax-line-single() { +echo -n " +------------------------------ +" +} + +warencli-start() { +warencli-syntax-line-douple +echo -n "Warén CLI " +warencli-syntax-line-douple +} + +warencli-stop () { + echo " " + echo " " + exit 1 +} + +warencli-update() { +if [[ -d "./src" ]]; then + echo ">>> Building... <<<" + podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php +fi +} + +warencli-help() { +echo " +Usage: $0 COMMAND [OPTIONS] + +Common Commands: + ssh SSH + config Config + sign Certificates + +Authentication Commands: + login Login + logout Logout + +Management Commands: + settings Settings + +Maintenance Commands: + install Install + update Update +"; +} + + +warencli-install() { +echo ">>> Install"; +} + +warencli-settings() { +echo ">>> Settings"; +} + +warencli-ssh() { +echo ">>> SSH"; +} + +warencli-login() { +echo ">>> Authentication: Login"; +} + +warencli-logout() { +echo ">>> Authentication: Logout"; +} + +warencli-ssh-config(){ +echo ">>> SSH: Config" +} + +warencli-ssh-sign(){ +echo ">>> SSH: Certificates" +} + + +COMMAND=$1 + +warencli-start +if [[ ! -z $1 ]]; then + warencli-$1 $2 $3 $4 $5 $6 $7 $8 $9 +fi +warencli-stop