Skip to content

Commit d9671a6

Browse files
committed
colorful output for some words
1 parent bb7713e commit d9671a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

init/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
OUT="start.psql"
66

77
cd "$DIR/.."
8-
echo "\\echo Menu:" > "$OUT"
8+
echo "\\echo '\\033[1;35mMenu:\\033[0m'" > "$OUT"
99
for f in ./sql/*.sql
1010
do
1111
prefix=$(echo $f | sed -e 's/_.*$//g' -e 's/^.*\///g')
@@ -39,7 +39,7 @@ do
3939
done
4040
echo "\\else" >> "$OUT"
4141
echo " \\echo" >> "$OUT"
42-
echo " \\echo 'ERROR: Unknown option!'" >> "$OUT"
42+
echo " \\echo '\\033[1;31mError:\\033[0m Unknown option!'" >> "$OUT"
4343
echo " \\echo" >> "$OUT"
4444
echo " \\i ./$OUT" >> "$OUT"
4545
echo "\\endif" >> "$OUT"

start.psql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\echo Menu:
1+
\echo '\033[1;35mMenu:\033[0m'
22
\echo ' 1 – Basic Node Information (master/replica, lag, DB size, tmp files)'
33
\echo ' 2 – General Table Size Information'
44
\echo ' b1 – Tables Bloat, rough estimation'
@@ -83,7 +83,7 @@ select
8383
\i ./start.psql
8484
\else
8585
\echo
86-
\echo 'ERROR: Unknown option!'
86+
\echo '\033[1;31mError:\033[0m Unknown option!'
8787
\echo
8888
\i ./start.psql
8989
\endif

0 commit comments

Comments
 (0)