mirror of
https://github.com/safedep/vet.git
synced 2025-12-11 01:01:10 -06:00
23 lines
398 B
Go
23 lines
398 B
Go
package ui
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/jedib0t/go-pretty/v6/text"
|
|
)
|
|
|
|
func PrintBanner(s string) {
|
|
fmt.Fprintf(os.Stderr, s)
|
|
}
|
|
|
|
func PrintSuccess(s string, args ...any) {
|
|
msg := fmt.Sprintf(s, args...)
|
|
fmt.Fprint(os.Stderr, text.FgGreen.Sprint(msg), "\n")
|
|
}
|
|
|
|
func PrintError(s string, args ...any) {
|
|
msg := fmt.Sprintf(s, args...)
|
|
fmt.Fprint(os.Stderr, text.FgRed.Sprint(msg), "\n")
|
|
}
|