dev: automated commit - 2025-07-15 23:20:30

This commit is contained in:
Mariano Z. 2025-07-15 23:20:30 -03:00
parent 33106ea4a6
commit 71cda52613
8 changed files with 770 additions and 696 deletions

22
logging.go Normal file
View file

@ -0,0 +1,22 @@
package main
import (
"fmt"
"os"
)
func log(msg string, args ...any) {
fmt.Printf(Green+"[RUN]"+NC+" "+msg+"\n", args...)
}
func warn(msg string, args ...any) {
fmt.Printf(Yellow+"[WARN]"+NC+" "+msg+"\n", args...)
}
func errorLog(msg string, args ...any) {
fmt.Fprintf(os.Stderr, Red+"[ERROR]"+NC+" "+msg+"\n", args...)
}
func sudoLog(msg string, args ...any) {
fmt.Printf(Purple+"[SUDO]"+NC+" "+msg+"\n", args...)
}