forked from mignev/develo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
banners.sh
146 lines (130 loc) · 2.71 KB
/
banners.sh
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
##
# http://misc.flogisoft.com/bash/tip_colors_and_formatting
##
function _develo_color_line {
for i in {16..21} {21..16}; do
echo -en "\x1B[38;5;${i}m#\x1B[0m\x1B[38;5;${i}m#\x1B[0m";
done
}
function _develo_sad_color_line {
for i in {124..129} {129..124}; do
echo -en "\x1B[38;5;${i}m:-\x1B[0m\x1B[38;5;${i}m( \x1B[0m";
done
}
function _develo_initalized_banner {
# Color fun :)
echo
_develo_color_line;
echo
echo -en "# \x1B[32mDevelo initialized! \x1B[0m#";
echo
_develo_color_line;
echo
echo
echo " Getting Started with"
echo
echo -e " \x1B[1mdevelo help\x1B[0m"
}
function _develo_action_not_exist_banner {
local cmd=$1;
echo
_develo_sad_color_line;
echo
echo
echo -e "\x1B[31m Sorry ... \x1B[0m\x1B[1m$cmd\x1B[0m\x1B[31m doesn't exist in .develo/ \x1B[0m";
echo -en "\x1B[1m If you want ... create it by self!\x1B[0m";
echo
echo
_develo_sad_color_line;
echo
echo
}
function _develo_actions_activate_banner {
if [ ! -z "$DEVELO_AUTO_ACTIVATE" ]; then
# Color fun :)
echo
_develo_color_line;
echo
echo -e "# \x1B[1mDevelo detected \x1B[0m#";
echo -en "# \x1B[32m and it's activated! \x1B[0m#";
echo
_develo_color_line;
echo
echo
else
echo
_develo_color_line;
echo
echo -en "#\x1B[32m Develo is activated! \x1B[0m#";
echo
_develo_color_line;
echo
echo
fi
}
function _develo_detected_banner {
# Color fun :)
echo
_develo_color_line;
echo
echo -e "# \x1B[1mDevelo detected \x1B[0m#";
echo -e "# \x1B[1m \x1B[0m#";
echo -e "# \x1B[32m develo activate \x1B[0m#";
echo -e "# \x1B[1m \x1B[0m#";
echo -en "# \x1B[1m to activate it! \x1B[0m#";
echo
_develo_color_line;
echo
echo
}
function _develo_actions_deploy_banner {
echo
_develo_color_line;
echo
echo -en "#\x1B[32m Deploying started! \x1B[0m#";
echo
_develo_color_line;
echo
echo
}
function _develo_actions_db_banner {
echo
_develo_color_line;
echo
echo -en "#\x1B[32m Connecting to DB! \x1B[0m#";
echo
_develo_color_line;
echo
echo
}
function _develo_actions_server_banner {
echo
_develo_color_line;
echo
echo -en "#\x1B[32m Start Server! \x1B[0m#";
echo
_develo_color_line;
echo
echo
}
function _develo_actions_selfupdate_banner {
echo
_develo_color_line;
echo
echo -en "#\x1B[32m Updating Develo! \x1B[0m#";
echo
_develo_color_line;
echo
echo
}
function _develo_version_banner {
local version=$1;
# Color fun :)
echo
_develo_color_line;
echo
echo -en "# \x1B[32mDevelo ${DEVELO_VERSION}\x1B[0m #";
echo
_develo_color_line;
echo
}