|
2 | 2 | # Author : SkwalExe |
3 | 3 | # Github : https://github.com/SkwalExe |
4 | 4 |
|
| 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 | + |
5 | 22 | command="matrix" # the command to execute |
6 | 23 |
|
7 | 24 | # settings |
@@ -131,24 +148,27 @@ case $command in |
131 | 148 | fi |
132 | 149 | ;; |
133 | 150 | 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 | + |
148 | 168 | ;; |
149 | 169 |
|
150 | 170 | version) |
151 | | - echo "mini-matrix 0.2.0" |
| 171 | + echo "${purple}mini-matrix 0.2.1${reset}" |
152 | 172 | ;; |
153 | 173 |
|
154 | 174 | esac |
|
0 commit comments