From 123e5aa3f2cc63c34e2492c25811af8ed5aa6780 Mon Sep 17 00:00:00 2001 From: Sami Alajrami Date: Mon, 19 Mar 2018 11:53:07 +0100 Subject: [PATCH] adding a helmsman logo and slogan --- init.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.go b/init.go index e57095b1..cc117e87 100644 --- a/init.go +++ b/init.go @@ -7,6 +7,16 @@ import ( "os" ) +const ( + banner = " _ _ \n" + + "| | | | \n" + + "| |__ ___| |_ __ ___ ___ _ __ ___ __ _ _ __\n" + + "| '_ \\ / _ \\ | '_ ` _ \\/ __| '_ ` _ \\ / _` | '_ \\ \n" + + "| | | | __/ | | | | | \\__ \\ | | | | | (_| | | | | \n" + + "|_| |_|\\___|_|_| |_| |_|___/_| |_| |_|\\__,_|_| |_|" + slogan = "A Helm-Chart-as-Code tool.\n\n" +) + // init is executed after all package vars are initialized [before the main() func in this case]. // It checks if Helm and Kubectl exist and configures: the connection to the k8s cluster, helm repos, namespaces, etc. func init() { @@ -19,6 +29,8 @@ func init() { flag.Parse() + fmt.Println(banner + "version: " + version + "\n" + slogan) + if v { fmt.Println("Helmsman version: " + version) os.Exit(0) @@ -29,7 +41,7 @@ func init() { os.Exit(0) } - fmt.Println("Helmsman version: " + version) + //fmt.Println("Helmsman version: " + version) if !toolExists("helm") { log.Fatal("ERROR: helm is not installed/configured correctly. Aborting!")