mirror of
https://github.com/CompeyDev/wsl-archlinux-manager.git
synced 2024-12-12 04:30:37 +00:00
24 lines
364 B
Go
24 lines
364 B
Go
package logger
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/gookit/color"
|
|
)
|
|
|
|
func Error(log string) {
|
|
color.Red.Println("\r ❎ ", log)
|
|
os.Exit(1)
|
|
}
|
|
|
|
func Warn(log string) {
|
|
color.Yellow.Println("\r ❎ ", log)
|
|
}
|
|
|
|
func Info(log string) {
|
|
color.Green.Println("\r ✅ ", log)
|
|
}
|
|
|
|
func Progress(log string) {
|
|
color.Bold.Println("\n✅ ", log)
|
|
}
|