-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip flagd banner when non-console logger in use
Signed-off-by: Austin Drenski <[email protected]>
- Loading branch information
1 parent
64c5787
commit c1d671f
Showing
4 changed files
with
41 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
"bytes" | ||
|
||
"github.com/dimiro1/banner" | ||
"github.com/mattn/go-colorable" | ||
"github.com/open-feature/flagd/flagd-proxy/cmd" | ||
) | ||
import "github.com/open-feature/flagd/flagd-proxy/cmd" | ||
|
||
var ( | ||
version = "dev" | ||
commit = "HEAD" | ||
date = "unknown" | ||
bannerText = ` | ||
{{ .AnsiColor.BrightRed }} ______ __ ________ _______ ______ | ||
{{ .AnsiColor.BrightRed }} /_____/\ /_/\ /_______/\ /______/\ /_____/\ | ||
{{ .AnsiColor.BrightRed }} \::::_\/_\:\ \ \::: _ \ \\::::__\/__\:::_ \ \ | ||
{{ .AnsiColor.BrightRed }} \:\/___/\\:\ \ \::(_) \ \\:\ /____/\\:\ \ \ \ | ||
{{ .AnsiColor.BrightRed }} \:::._\/ \:\ \____\:: __ \ \\:\\_ _\/ \:\ \ \ \ | ||
{{ .AnsiColor.BrightRed }} \:\ \ \:\/___/\\:.\ \ \ \\:\_\ \ \ \:\/.:| | | ||
{{ .AnsiColor.BrightRed }} \_\/ \_____\/ \__\/\__\/ \_____\/ \____/_/ | ||
{{ .AnsiColor.BrightRed }} Kubernetes Proxy | ||
{{ .AnsiColor.Default }} | ||
` | ||
version = "dev" | ||
commit = "HEAD" | ||
date = "unknown" | ||
) | ||
|
||
func main() { | ||
banner.Init(colorable.NewColorableStdout(), true, true, | ||
bytes.NewBufferString(bannerText)) | ||
cmd.Execute(version, commit, date) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
"bytes" | ||
|
||
"github.com/dimiro1/banner" | ||
"github.com/mattn/go-colorable" | ||
"github.com/open-feature/flagd/flagd/cmd" | ||
) | ||
import "github.com/open-feature/flagd/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 }} | ||
` | ||
version = "dev" | ||
commit = "HEAD" | ||
date = "unknown" | ||
) | ||
|
||
func main() { | ||
banner.Init(colorable.NewColorableStdout(), true, true, | ||
bytes.NewBufferString(bannerText)) | ||
cmd.Execute(version, commit, date) | ||
} |