Files
katenary/internal/utils/icons.go
T

32 lines
654 B
Go
Raw Permalink Normal View History

2023-12-06 15:24:02 +01:00
package utils
import "fmt"
// Icon is a unicode icon
type Icon string
// Icons used in katenary.
const (
IconSuccess Icon = "✅"
2024-04-05 07:56:27 +02:00
IconFailure Icon = "❌"
IconWarning Icon = "❕"
2024-04-05 07:56:27 +02:00
IconNote Icon = "📝"
IconWorld Icon = "🌐"
IconPlug Icon = "🔌"
IconPackage Icon = "📦"
IconCabinet Icon = "🗄️"
IconInfo Icon = "🔵"
2024-04-05 07:56:27 +02:00
IconSecret Icon = "🔒"
IconConfig Icon = "🔧"
IconDependency Icon = "🔗"
2023-12-06 15:24:02 +01:00
)
// Warn prints a warning message
func Warn(msg ...any) {
2023-12-06 15:24:02 +01:00
orange := "\033[38;5;214m"
reset := "\033[0m"
fmt.Print(IconWarning, orange, " ")
fmt.Print(msg...)
fmt.Println(reset)
}