Skip to content
Snippets Groups Projects
main.go 602 B
Newer Older
  • Learn to ignore specific revisions
  • package main
    
    import (
    
    	"code.fbi.h-da.de/cocsn/gosdn/nucleus"
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    	"flag"
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    	// register our supported flags
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	cliListenAddr := flag.String("cli-listen-addr", "localhost", "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")
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    
    	flag.Parse()
    
    	cliSocket := *cliListenAddr + ":" + *cliListenPort
    
    	// hand off to cmd for further processing
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	nucleus.StartUp(cliSocket, *configFileName)
    
    Martin Stiemerling's avatar
    Martin Stiemerling committed
    	nucleus.Run()
    
    
    	// nothing to see here, please move on!
    }