From e9246fb54d135ce06a781476a3e1b7ba56bc8918 Mon Sep 17 00:00:00 2001 From: Manuel Kieweg <mail@manuelkieweg.de> Date: Fri, 15 Jan 2021 12:00:07 +0100 Subject: [PATCH] include spf13/viper for config --- cmd/gosdn/main.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/cmd/gosdn/main.go b/cmd/gosdn/main.go index 7555cd65a..2ba0f61f0 100644 --- a/cmd/gosdn/main.go +++ b/cmd/gosdn/main.go @@ -2,27 +2,15 @@ package main import ( "code.fbi.h-da.de/cocsn/gosdn/nucleus" - "flag" log "github.com/sirupsen/logrus" ) func main() { - - // register our supported flags - cliListenAddr := flag.String("cli-listen-addr", "", "The IP address of the grpcCLI.") - cliListenPort := flag.String("cli-server-port", "55055", "The port number of the grpcCLI") - configFileName := flag.String("config-file", "", "Path to the config file") - - flag.Parse() - cliSocket := *cliListenAddr + ":" + *cliListenPort - log.SetLevel(log.DebugLevel) // Setup a channel to communicate if goSDN should shutdown. IsRunningChannel := make(chan bool) // hand off to cmd for further processing - nucleus.StartAndRun(cliSocket, *configFileName, IsRunningChannel) - - // nothing to see here, please move on! + nucleus.StartAndRun(IsRunningChannel) } -- GitLab