added basic interface
parent
51591c63a7
commit
914b05911c
|
|
@ -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
|
||||||
Loading…
Reference in New Issue