forked from open-feature/flagd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
31 lines (27 loc) · 986 Bytes
/
main.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
package main
import (
"bytes"
"github.com/dimiro1/banner"
"github.com/mattn/go-colorable"
"github.com/open-feature/flagd/cmd"
)
var (
version = "dev"
commit = "HEAD"
date = "unknown"
bannerText = `
{{ .AnsiColor.BrightRed }} ______ __ ________ _______ ______
{{ .AnsiColor.BrightRed }} /_____/\ /_/\ /_______/\ /______/\ /_____/\
{{ .AnsiColor.BrightRed }} \::::_\/_\:\ \ \::: _ \ \\::::__\/__\:::_ \ \
{{ .AnsiColor.BrightRed }} \:\/___/\\:\ \ \::(_) \ \\:\ /____/\\:\ \ \ \
{{ .AnsiColor.BrightRed }} \:::._\/ \:\ \____\:: __ \ \\:\\_ _\/ \:\ \ \ \
{{ .AnsiColor.BrightRed }} \:\ \ \:\/___/\\:.\ \ \ \\:\_\ \ \ \:\/.:| |
{{ .AnsiColor.BrightRed }} \_\/ \_____\/ \__\/\__\/ \_____\/ \____/_/
{{ .AnsiColor.Default }}
`
)
func main() {
banner.Init(colorable.NewColorableStdout(), true, true,
bytes.NewBufferString(bannerText))
cmd.Execute(version, commit, date)
}