[WIP] Initial commit for qsgen3
This commit is contained in:
21
docs/zsdoc/data/functions/qsgen2/_msg
Normal file
21
docs/zsdoc/data/functions/qsgen2/_msg
Normal file
@ -0,0 +1,21 @@
|
||||
local type=$1
|
||||
shift
|
||||
|
||||
local full_msg=""
|
||||
for arg in "$@"; do
|
||||
if [[ -n "${qsgenlang[$arg]}" ]]; then
|
||||
full_msg+="${qsgenlang[$arg]}"
|
||||
else
|
||||
full_msg+="$arg"
|
||||
fi
|
||||
done
|
||||
local color="${end}"
|
||||
case $type in
|
||||
std) color="${green}" ;;
|
||||
info) color="${yellow}" ;;
|
||||
debug) color="${red}" ;;
|
||||
other) color="${bold_yellow}" ;;
|
||||
sub) color="${magenta}" ;;
|
||||
main) color="${white}${green_bg}" ;;
|
||||
esac
|
||||
printf "${color}%b${end}\n" "${full_msg}"
|
Reference in New Issue
Block a user