mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-09-28 12:22:39 -06:00
docs: update
This commit is contained in:
parent
b8abc98552
commit
098e20dae6
10
kiss
10
kiss
@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
log() {
|
log() {
|
||||||
# Print a message prettily.
|
# Print a message prettily.
|
||||||
# '\033[1;32m': Set text to color '2' and make it bold.
|
# '\033[1;32m' Set text to color '2' and make it bold.
|
||||||
# '\033[m': Reset text formatting.
|
# '\033[m': Reset text formatting.
|
||||||
# '${3:-->}': If the 3rd argument is missing, set prefix to '->'.
|
# '${3:-->}': If the 3rd argument is missing, set prefix to '->'.
|
||||||
# '${2:+[1;33m}': If the 2nd argument exists, set the text style of '$1'.
|
# '${2:+[1;33m}': If the 2nd argument exists, set the text style of '$1'.
|
||||||
# '${2:+[m}': If the 2nd argument exists, reset text formatting.
|
# '${2:+[m}': If the 2nd argument exists, reset text formatting.
|
||||||
printf '\033[1;32m%s \033[m%s\033[m %s\n' \
|
printf '\033[1;32m%s \033[m%s\033[m %s\n' \
|
||||||
"${3:-->}" "${2:+[1;33m}$1${2:+[m}" "$2"
|
"${3:-->}" "${2:+[1;33m}$1${2:+[m}" "$2"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user