Update bash_task_formatter/formatter_new.sh
This commit is contained in:
parent
ea07259f9e
commit
5ed09bd5e1
1 changed files with 7 additions and 16 deletions
|
@ -1,12 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Color variables
|
||||
COLOR_RESET="\033[0m"
|
||||
COLOR_BLUE="\033[1;34m"
|
||||
COLOR_YELLOW="\033[1;33m"
|
||||
COLOR_GREEN="\033[1;32m"
|
||||
COLOR_RED="\033[1;31m"
|
||||
|
||||
# Symbols
|
||||
CHECK_MARK="\033[1;32m✔\033[0m"
|
||||
CROSS_MARK="\033[1;31m✘\033[0m"
|
||||
|
@ -15,12 +6,12 @@ CROSS_MARK="\033[1;31m✘\033[0m"
|
|||
print_header() {
|
||||
local script_name=$1
|
||||
echo -e "${COLOR_GREEN}"
|
||||
echo " _____ _ _ _ "
|
||||
echo " / ____| (_) | | | "
|
||||
echo " | (___ _ __ ___ _| |_| |__ ___ ___ _ ____ _____ _ __ "
|
||||
echo " \\___ \\| '_ \` _ \\| | __| '_ \\/ __|/ _ \\ '__\\ \\ / / _ \\ '__|"
|
||||
echo " ____) | | | | | | | |_| | | \\__ \\ __/ | \\ V / __/ | "
|
||||
echo " |_____/|_| |_| |_|_|\\__|_| |_|___/\\___|_| \\_/ \\___|_| "
|
||||
echo " _ _ _ _ ______ "
|
||||
echo " | | | | | | | ____|"
|
||||
echo " | |__| | |__| | |__ ___ ___ _ ____ _____ _ __ "
|
||||
echo " | __ | __ | __/ __|/ _ \ '__\ \ / / _ \ '__|"
|
||||
echo " | | | | | | | | | (__ __/ | \ V / __/ | "
|
||||
echo " |_| |_|_| |_|_| \___\___|_| \_/ \___|_| "
|
||||
echo -e "${COLOR_RESET}\n"
|
||||
echo -e "${COLOR_GREEN}${script_name}${COLOR_RESET}\n\n\n"
|
||||
}
|
||||
|
@ -119,4 +110,4 @@ format_output_with_input() {
|
|||
export -f print_header
|
||||
export -f format_output
|
||||
export -f format_output_with_input
|
||||
export COLOR_RESET COLOR_BLUE COLOR_YELLOW COLOR_GREEN COLOR_RED CHECK_MARK CROSS_MARK
|
||||
export COLOR_RESET COLOR_BLUE COLOR_YELLOW COLOR_GREEN COLOR_RED CHECK_MARK CROSS_MARK
|
Loading…
Reference in a new issue