Skip to content

Commit 21d3eda

Browse files
committed
added colors to help
1 parent 648f3f6 commit 21d3eda

File tree

1 file changed

+35
-15
lines changed

1 file changed

+35
-15
lines changed

β€Žmini-matrix.shβ€Ž

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
# Author : SkwalExe
33
# Github : https://github.com/SkwalExe
44

5+
blue='\033[0;96m'
6+
red='\033[0;91m'
7+
green='\033[0;92m'
8+
yellow='\033[0;93m'
9+
purple='\033[0;95m'
10+
white='\033[0;97m'
11+
12+
bg_blue='\033[0;44m'
13+
bg_red='\033[0;41m'
14+
bg_green='\033[0;42m'
15+
bg_yellow='\033[0;43m'
16+
bg_cyan='\033[0;46m'
17+
bg_white='\033[0;47m'
18+
bg_purple='\033[0;45m'
19+
20+
reset='\033[0m'
21+
522
command="matrix" # the command to execute
623

724
# settings
@@ -131,24 +148,27 @@ case $command in
131148
fi
132149
;;
133150
help)
134-
echo "Usage: mini-matrix [OPTION]"
135-
echo ""
136-
echo "Autor : SkwalExe [LΓ©opold Ibghy Koprivnik]"
137-
echo "Github : https://github.com/SkwalExe"
138-
echo ""
139-
echo "Displays a matrix of random characters"
140-
echo ""
141-
echo "Options:"
142-
echo " -h, --help Show this help message and exit"
143-
echo " -v, --version Show version and exit"
144-
echo " -s, --speed Set the delay between each line [default: 0.5]"
145-
echo " -l, --loop Loop the output [default: false]"
146-
echo " -c, --chars Set the number of characters to output [default: 10]"
147-
echo " -a, --custom-chars Set the custom characters to use [default: \"01\"]"
151+
printf "${bg_blue} Mini-matrix ${reset}\n"
152+
printf "${blue}━━━━━━━━━━━━━━━━━${reset}\n"
153+
printf "Author: ${green}@SkwalExe${reset}\n"
154+
printf "Github: ${green}https://github.com/SkwalExe/daily-todo${reset}\n"
155+
printf "${blue}━━━━━━━━━━━━━━━━━${reset}\n"
156+
printf "Output random 0 and 1 or custom characters with a matrix-like effect\n"
157+
printf "${blue}━━━━━━━━━━━━━━━━━${reset}\n"
158+
printf "$ mini-matrix [Options]:\n"
159+
printf "${green} -h, --help${reset} Show this help message and exit\n"
160+
printf "${green} -v, --version${reset} Show version and exit\n"
161+
printf "${green} -s, --speed${reset} Set the delay between each line ${yellow}[default: 0.5]\n"
162+
printf "${green} -l, --loop${reset} Loop the output ${yellow}[default: false]\n"
163+
printf "${green} -c, --chars${reset} Set the number of characters to output ${yellow}[default: 10]\n"
164+
printf "${green} -a, --custom-chars${reset} Set the custom characters to use ${yellow}[default: \"01\"]\n"
165+
printf "${blue}━━━━━━━━━━━━━━━━━${reset}\n"
166+
167+
148168
;;
149169

150170
version)
151-
echo "mini-matrix 0.2.0"
171+
echo "${purple}mini-matrix 0.2.1${reset}"
152172
;;
153173

154174
esac

0 commit comments

Comments
Β (0)