diff options
author | 2019-10-17 17:36:35 +0300 | |
---|---|---|
committer | 2019-10-17 15:36:35 +0100 | |
commit | c187d8fa01f94c7b5c94dff0386bada2fe6a92aa (patch) | |
tree | e62e592809ec3bf552dc3a268f07a05b5f65a59b | |
parent | 9ccc736f6868fb63fa401e0c72343f91d63a3d07 (diff) | |
download | coredns-c187d8fa01f94c7b5c94dff0386bada2fe6a92aa.tar.gz coredns-c187d8fa01f94c7b5c94dff0386bada2fe6a92aa.tar.zst coredns-c187d8fa01f94c7b5c94dff0386bada2fe6a92aa.zip |
Issue-3374 (#3383)
- Remove logo
Signed-off-by: Anshul Sharma <sharmaanshul2102@gmail.com>
-rw-r--r-- | coremain/logo.go | 14 | ||||
-rw-r--r-- | coremain/run.go | 9 |
2 files changed, 3 insertions, 20 deletions
diff --git a/coremain/logo.go b/coremain/logo.go deleted file mode 100644 index 09db8de42..000000000 --- a/coremain/logo.go +++ /dev/null @@ -1,14 +0,0 @@ -package coremain - -// This is CoreDNS' ascii LOGO, nothing fancy. It's generated with: -// figlet -f slant CoreDNS -// We're printing the logo line by line, hence splitting it up. -var logo = []string{ - ` ______ ____ _ _______`, - ` / ____/___ ________ / __ \/ | / / ___/`, - ` / / / __ \/ ___/ _ \/ / / / |/ /\__ \ `, - `/ /___/ /_/ / / / __/ /_/ / /| /___/ / `, - `\____/\____/_/ \___/_____/_/ |_//____/ `, -} - -const marker = "~ " diff --git a/coremain/run.go b/coremain/run.go index 5dcb3c013..98ba2fd6c 100644 --- a/coremain/run.go +++ b/coremain/run.go @@ -139,21 +139,18 @@ func defaultLoader(serverType string) (caddy.Input, error) { }, nil } -// showVersion prints the version that is starting. We print our logo on the left. +// showVersion prints the version that is starting. func showVersion() { - fmt.Println(logo[0]) fmt.Print(versionString()) fmt.Print(releaseString()) if devBuild && gitShortStat != "" { fmt.Printf("%s\n%s\n", gitShortStat, gitFilesModified) } - fmt.Println(logo[3]) - fmt.Println(logo[4]) } // versionString returns the CoreDNS version as a string. func versionString() string { - return fmt.Sprintf("%s\t%s%s-%s\n", logo[1], marker, caddy.AppName, caddy.AppVersion) + return fmt.Sprintf("%s-%s\n", caddy.AppName, caddy.AppVersion) } // releaseString returns the release information related to CoreDNS version: @@ -161,7 +158,7 @@ func versionString() string { // e.g., // linux/amd64, go1.8.3, a6d2d7b5 func releaseString() string { - return fmt.Sprintf("%s\t%s%s/%s, %s, %s\n", logo[2], marker, runtime.GOOS, runtime.GOARCH, runtime.Version(), GitCommit) + return fmt.Sprintf("%s/%s, %s, %s\n", runtime.GOOS, runtime.GOARCH, runtime.Version(), GitCommit) } // setVersion figures out the version information |