feat: update println function to support an additional argument for improved formatting
Some checks failed
Nix Format Check / check-format (push) Failing after 38s

This commit is contained in:
Menno van Leeuwen 2025-03-11 11:11:03 +01:00
parent 620abb2ffe
commit e074365cc8
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -12,7 +12,7 @@ readonly SETUP_MARKER="${HOME}/.dotfiles-setup" # Setup mark
#Color print function, usage: println "message" "color" #Color print function, usage: println "message" "color"
println() { println() {
color=$2 color=$2
printfe "%s\n" $color "$1" printfe "%s\n" $color "$1" true
} }
# print colored with printf (args: format, color, message ...) # print colored with printf (args: format, color, message ...)