added logo and updated version

This commit is contained in:
worker-9 2021-08-09 14:56:27 -04:00
parent f496beac4e
commit ba4a177bfd
4 changed files with 23 additions and 2 deletions

1
.gitignore vendored
View file

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

View file

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

View file

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

View file

@ -17,7 +17,7 @@ func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "Netclient CLI" 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.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{ cliFlags := []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{