From 914b05911c6a5c69f2918a97e3d44b7906e8a694 Mon Sep 17 00:00:00 2001 From: Daniel Mikula Date: Mon, 15 May 2023 09:44:07 +0200 Subject: [PATCH] added basic interface --- setup.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..b25526f --- /dev/null +++ b/setup.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +# Author : NTT Data AG +# Date : 11-05-2023 + +show_help () { + echo "Usage: $0 [-m helm_install: bool] [-a app_name: str]" +} + +helm_install=false +app_name="" + +while getopts "hm:a:" option; do + case $option in + h) + show_help + exit 1 + ;; + m) + helm_install="$OPTARG" + ;; + a) + app_name="$OPTARG" + ;; + *) + show_help + exit 1 + ;; + esac +done + +if [ "$helm_install" = "true" ]; then + echo "Installing helm" +fi + +if [ -z "$app_name" ]; then + echo "Please specify app" +else + echo "Installing $app_name" +fi \ No newline at end of file