MCPcopy
hub / github.com/keploy/keploy / PrintLogo

Function PrintLogo

cli/provider/util.go:35–44  ·  view source on GitHub ↗
(wr io.Writer, disableANSI bool)

Source from the content-addressed store, hash-verified

33`
34
35func PrintLogo(wr io.Writer, disableANSI bool) {
36 if os.Getenv("BINARY_TO_DOCKER") != "true" {
37 printKeployLogo(wr, disableANSI, Logo)
38 // print version to the same writer
39 _, err := fmt.Fprintf(wr, "%s: %v\n\n", utils.VersionIdentifier, utils.Version)
40 if err != nil {
41 log.Fatalf("Error printing version: %v", err)
42 }
43 }
44}
45
46func printKeployLogo(wr io.Writer, disableANSI bool, logo string) {
47 const reset = "\033[0m"

Callers 7

ExportFunction · 0.92
UpdateFunction · 0.92
ExampleFunction · 0.92
ImportFunction · 0.92
RootFunction · 0.92
AddFlagsMethod · 0.85
ValidateFlagsMethod · 0.85

Calls 1

printKeployLogoFunction · 0.85

Tested by

no test coverage detected