Browse Source

added logo and updated version

worker-9 4 years ago
parent
commit
ba4a177bfd
4 changed files with 23 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 4 1
      main.go
  3. 17 0
      models/names.go
  4. 1 1
      netclient/main.go

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 netmaker
 netclient/netclient
 netclient/files/netclient
+config/dnsconfig/

+ 4 - 1
main.go

@@ -4,6 +4,7 @@
 package main
 
 import (
+	"fmt"
 	"log"
 	"net"
 	"os"
@@ -15,6 +16,7 @@ import (
 	"github.com/gravitl/netmaker/database"
 	"github.com/gravitl/netmaker/functions"
 	nodepb "github.com/gravitl/netmaker/grpc"
+	"github.com/gravitl/netmaker/models"
 	"github.com/gravitl/netmaker/netclient/local"
 	"github.com/gravitl/netmaker/servercfg"
 	"google.golang.org/grpc"
@@ -22,7 +24,8 @@ import (
 
 //Start MongoDB Connection and start API Request Handler
 func main() {
-	initialize() // initial db and grpc server
+	fmt.Println(models.RetrieveLogo()) // print the logo
+	initialize()                       // initial db and grpc server
 	defer database.Database.Close()
 	startControllers() // start the grpc or rest endpoints
 }

+ 17 - 0
models/names.go

@@ -185,3 +185,20 @@ func GenerateNodeName() string {
 	rand.Seed(time.Now().UnixNano())
 	return NAMES[rand.Intn(len(SMALL_NAMES))] + "-" + NAMES[seededRand.Intn(len(NAMES))]
 }
+
+func RetrieveLogo() string {
+	return `
+    ______     ______     ______     __   __   __     ______   __                        
+   /\  ___\   /\  == \   /\  __ \   /\ \ / /  /\ \   /\__  _\ /\ \                       
+   \ \ \__ \  \ \  __<   \ \  __ \  \ \ \'/   \ \ \  \/_/\ \/ \ \ \____                  
+    \ \_____\  \ \_\ \_\  \ \_\ \_\  \ \__|    \ \_\    \ \_\  \ \_____\                 
+     \/_____/   \/_/ /_/   \/_/\/_/   \/_/      \/_/     \/_/   \/_____/                 
+                                                                                         
+ __   __     ______     ______   __    __     ______     __  __     ______     ______    
+/\ "-.\ \   /\  ___\   /\__  _\ /\ "-./  \   /\  __ \   /\ \/ /    /\  ___\   /\  == \   
+\ \ \-.  \  \ \  __\   \/_/\ \/ \ \ \-./\ \  \ \  __ \  \ \  _"-.  \ \  __\   \ \  __<   
+ \ \_\\"\_\  \ \_____\    \ \_\  \ \_\ \ \_\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\ 
+  \/_/ \/_/   \/_____/     \/_/   \/_/  \/_/   \/_/\/_/   \/_/\/_/   \/_____/   \/_/ /_/ 
+                                                                                         																							 
+`
+}

+ 1 - 1
netclient/main.go

@@ -17,7 +17,7 @@ func main() {
 	app := cli.NewApp()
 	app.Name = "Netclient CLI"
 	app.Usage = "Netmaker's netclient agent and CLI. Used to perform interactions with Netmaker server and set local WireGuard config."
-	app.Version = "v0.5.11"
+	app.Version = "v0.7.1"
 
 	cliFlags := []cli.Flag{
 		&cli.StringFlag{