File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# # Opens TablePlus
4
4
# #
5
- # # Usage: fin tableplus
5
+ # # Usage: fin tableplus [mysql|mariadb|postgre]
6
6
7
7
# Abort if anything fails
8
8
set -e
@@ -16,4 +16,20 @@ NAME=${COMPOSE_PROJECT_NAME}
16
16
17
17
PORT=${PORT:- $container_port }
18
18
19
- open " mariadb://${USER} :${PASS} @${HOST} :${PORT} /${DB} ?statusColor=007F3D&enviroment=local&name=${NAME} "
19
+
20
+
21
+ case " $1 " in
22
+ mysql)
23
+ open " mysql://${USER} :${PASS} @${HOST} :${PORT} /${DB} ?statusColor=007F3D&enviroment=local&name=${NAME} "
24
+ ;;
25
+ mariadb)
26
+ open " mariadb://${USER} :${PASS} @${HOST} :${PORT} /${DB} ?statusColor=007F3D&enviroment=local&name=${NAME} "
27
+ ;;
28
+ postgre)
29
+ open " postgresql://${USER} :${PASS} @${HOST} :${PORT} /${DB} ?statusColor=007F3D&enviroment=local&name=${NAME} "
30
+ ;;
31
+ * )
32
+ echo " Usage: fin tableplus [mysql|mariadb|postgre]"
33
+ exit 1
34
+ ;;
35
+ esac
You can’t perform that action at this time.
0 commit comments