forked from uadmin/uadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors.go
87 lines (75 loc) · 2.15 KB
/
colors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//go:build !windows
// +build !windows
package colors
const (
// FGBlackB Forground Black Bold
FGBlackB = "\x1b[30;1m"
// FGRedB Forground Red Bold
FGRedB = "\x1b[31;1m"
// FGGreenB Forground Green Bold
FGGreenB = "\x1b[32;1m"
// FGYellowB Forground Yellow Bold
FGYellowB = "\x1b[33;1m"
// FGBlueB Forground Blue Bold
FGBlueB = "\x1b[34;1m"
// FGMagentaB Forground Magenta Bold
FGMagentaB = "\x1b[35;1m"
// FGCyanB Forground Cyan Bold
FGCyanB = "\x1b[36;1m"
// FGWhiteB Forground White Bold
FGWhiteB = "\x1b[37;1m"
// FGBlack Forground Black
FGBlack = "\x1b[30m"
// FGRed Forground Red
FGRed = "\x1b[31m"
// FGGreen Forground Green
FGGreen = "\x1b[32m"
// FGYellow Forground Yellow
FGYellow = "\x1b[33m"
// FGBlue Forground Blue
FGBlue = "\x1b[34m"
// FGMagenta Forground Magenta
FGMagenta = "\x1b[35m"
// FGCyan Forground Cyan
FGCyan = "\x1b[36m"
// FGWhite Forground White
FGWhite = "\x1b[37m"
// FGNormal Forground Reset to Normal
FGNormal = "\x1b[0m"
// BGBlack Background Black
BGBlack = "\x1b[40m"
// BGRed Background Red
BGRed = "\x1b[41m"
// BGGreen Background Green
BGGreen = "\x1b[42m"
// BGYellow Background Yellow
BGYellow = "\x1b[43m"
// BGBlue Background Blue
BGBlue = "\x1b[44m"
// BGMagenta Background Magenta
BGMagenta = "\x1b[45m"
// BGCyan Background Cyan
BGCyan = "\x1b[46m"
// BGWhite Background White
BGWhite = "\x1b[47m"
)
// OK CLI Display
const OK = "[ " + FGGreenB + "OK" + FGNormal + " ] "
// Working CLI Display
const Working = "[ " + FGMagentaB + "WORKING" + FGNormal + "] "
// Warning CLI Display
const Warning = "[ " + FGYellowB + "WARNING" + FGNormal + "] "
// Error CLI Display
const Error = "[ " + FGRedB + "ERROR" + FGNormal + " ] "
// None CLI Display
const None = ""
// Debug CLI Display
const Debug = "[ " + FGCyanB + "DEBUG" + FGNormal + " ] "
// Info CLI Display
const Info = "[ " + FGBlueB + "INFO" + FGNormal + " ] "
// Critical CLI Display
const Critical = "[" + FGRedB + "CRITICAL" + FGNormal + "] "
// Alert CLI Display
const Alert = "[ " + FGRedB + "ALERT" + FGNormal + " ] "
// Emergency CLI Display
const Emergency = "[ " + FGRedB + "EMERG" + FGNormal + " ] "