From 13f4fcb745b99b4912727529ab5684db5504b23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20O=C5=BEana?= Date: Wed, 5 Apr 2023 18:06:09 +0200 Subject: [PATCH] Add function to usage --- example/usage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/usage.sh b/example/usage.sh index 044d081..6b872b6 100755 --- a/example/usage.sh +++ b/example/usage.sh @@ -6,3 +6,7 @@ echo "this is ${MAGENTA}magenta ${BLINK}blink${NC} text${NC}" # or you can use the functions echo $(gray "[INFO] " && green "This is gree test") + +# there can be a function that uses the colors +function info() { echo $(gray "[INFO] " && yellow "$@"); } +info "This is a info test"