summaryrefslogtreecommitdiff
path: root/internal/colour/colour.go
blob: 3bdfffe86a71edf52b906272366bf1762995c422 (plain)
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
package colour

import (
	"fmt"

	"github.com/fatih/color"
)

var (
	Infofln = func(format string, args ...any) {
		fmt.Printf(format, args...)
		fmt.Print("\n")
	}
	Infoln = func(args ...any) { fmt.Println(args...) }

	AttentionCol = color.New(color.FgHiYellow, color.BgBlue)
	warnCol      = color.New(color.FgHiWhite, color.BgRed)
	Warnln       = warnCol.PrintlnFunc()

	successCol = color.New(color.FgWhite, color.BgGreen)
	Successfln = func(format string, args ...any) {
		successCol.Printf(format, args...)
		fmt.Print("\n")

	}

	AckCol = color.New(color.FgBlack, color.BgHiYellow, color.Bold)
	Ackf   = AckCol.PrintfFunc()
)