Current section
Files
Jump to
Current section
Files
src/go_over/util/print.gleam
import gleam/io
import shellout
pub fn progress(msg: String) {
shellout.style(msg, with: shellout.color(["brightmagenta"]), custom: [])
|> io.println
}
pub fn format_warning(msg: String) {
shellout.style(msg <> "\n", with: shellout.color(["red"]), custom: [])
}
pub fn format_critical(msg: String) {
format_warning(msg)
}
pub fn format_high(msg: String) {
shellout.style(msg <> "\n", with: shellout.color(["yellow"]), custom: [])
}
pub fn format_moderate(msg: String) {
shellout.style(msg <> "\n", with: shellout.color(["blue"]), custom: [])
}
pub fn format_low(msg: String) {
shellout.style(msg <> "\n", with: shellout.color(["cyan"]), custom: [])
}
pub fn warning(msg: String) {
format_warning(msg)
|> io.println
}
pub fn success(msg: String) {
shellout.style(msg, with: shellout.color(["brightgreen"]), custom: [])
|> io.println
}