-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-menu
executable file
·105 lines (90 loc) · 3.86 KB
/
main-menu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
cwd=$(pwd)
if [ ! -f ./github/.installed ];
then
cd ./github
./install.sh
cd $cwd
read -rsp $'Press enter to continue...\n'
fi
notDevd(){
echo "This option has not been developed yet."
read -rsp $'Press enter to continue...\n'
}
bashStudio(){
./github/tools/bashStudio/bashStudio.sh
}
createPom(){
notDevd
}
pom-version-update(){
#Note: This utility needs to be updated to provide
#parameter input for what the working directory should be.
clear
cd $cwd/github/tools/pom-version-update
pwd
ls
echo "Example: ???"
echo "You can't use this command from the menu."
read -rsp $'Press enter to continue...\n'
}
wso2-proxy-conflict-finder(){
#Note: This utility needs to be updated to provide
#parameters for the new and existing CAR file folders.
clear
cd $cwd/github/tools/wso2-proxy-conflict-finder
pwd
ls
echo "Example: ???"
echo "You can't use this command from the menu."
read -rsp $'Press enter to continue...\n'
}
xmlMenu(){
./xml-menu
}
customMenu(){
./custom-menu
}
while :
do
cd $cwd
clear
cat<<EOF
___ __ _ __ _ __ _ _
| |_ _ | | | _|_ o __ _ _|_ _ | |(_ / \ _) | \ _ (_ |_)|_) _ ___|_
| | |(/_ |_| | |_ | |||(_| |_(/_ |^|__)\_//__ |_/(/_\_/ __)|_|| | (_) | |_
███╗ ███╗ █████╗ ██╗███╗ ██╗ ███╗ ███╗███████╗███╗ ██╗██╗ ██╗
████╗ ████║██╔══██╗██║████╗ ██║ ████╗ ████║██╔════╝████╗ ██║██║ ██║
██╔████╔██║███████║██║██╔██╗ ██║ ██╔████╔██║█████╗ ██╔██╗ ██║██║ ██║
██║╚██╔╝██║██╔══██║██║██║╚██╗██║ ██║╚██╔╝██║██╔══╝ ██║╚██╗██║██║ ██║
██║ ╚═╝ ██║██║ ██║██║██║ ╚████║ ██║ ╚═╝ ██║███████╗██║ ╚████║╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═════╝
+------------------------------+
| (Q)uit |
+------------------------------+
| Please enter your choice: |
| |
| (B)ashStudio |
| (C)reate POM File |
| Pom (V)ersion Update |
| WSO2 Proxy Conflict (F)inder |
| |
| (X)ML/XSD/XSLT Utils Menu |
| Custom (U)tils Menu |
| |
+------------------------------+
EOF
read -n1 -s
case "$REPLY" in
"b" | "B") bashStudio ;;
"c" | "C") createPom ;;
"v" | "V") pom-version-update ;;
"f" | "F") wso2-proxy-conflict-finder ;;
"x" | "X") xmlMenu ;;
"u" | "U") customMenu ;;
"Q") exit ;;
"q") echo "case sensitive!!" ;;
* ) echo "invalid option" ;;
esac
sleep 1
done