Remove functions

This commit is contained in:
Roman Ožana
2023-10-30 15:51:36 +01:00
parent 0082c25fea
commit 18b8f5ee27
3 changed files with 26 additions and 65 deletions

View File

@@ -6,15 +6,11 @@ source colors.sh
echo "${RED}This is red text${NC} and this is ${GREEN}green ${BLINK}blink${NC} text${NC}"
echo "this is ${MAGENTA}magenta ${BLINK}blink${NC} text${NC}"
# or you can use the functions
echo $(gray "[INFO] " && green "This is green test")
# there can be a function that uses the colors
function info() { echo $(gray "[INFO] " && yellow "$@"); }
function info() { printf "${YELLOW}$@${NC}\n"; }
info "This is a info test"
# or you can use the functions directly
printf "${GRAY}GRAY${NC}\n"
printf "${LIGHT_GRAY}LIGHT_GRAY${NC}\n"
printf "${YELLOW}YELLOW${NC}\n"