Not test yet

This commit is contained in:
KusakabeSi
2021-08-20 17:32:50 +00:00
parent 87a62f873b
commit 4939f9f0c4
18 changed files with 1577 additions and 465 deletions

20
main.go
View File

@@ -43,18 +43,14 @@ func readYaml(filePath string, out interface{}) (err error) {
}
var (
config = flag.String("config", "", "Config path for the interface.")
mode = flag.String("mode", "edge", "Running mode. [super|edge]")
version = flag.Bool("version", false, "Show version")
help = flag.Bool("help", false, "Show this help")
nouapi = flag.Bool("no-uapi", false, "Do not use UAPI")
tconfig = flag.String("config", "", "Config path for the interface.")
mode = flag.String("mode", "edge", "Running mode. [super|edge]")
printExample = flag.Bool("example", false, "Print example config")
nouapi = flag.Bool("no-uapi", false, "Do not use UAPI")
version = flag.Bool("version", false, "Show version")
help = flag.Bool("help", false, "Show this help")
)
type LoggerInfo struct {
LogLevel string
LogTransit bool
}
func main() {
flag.Parse()
if *version == true {
@@ -73,9 +69,9 @@ func main() {
switch *mode {
case "edge":
Edge(*config, !*nouapi)
Edge(*tconfig, !*nouapi, *printExample)
case "super":
Super(*config, !*nouapi)
Super(*tconfig, !*nouapi, *printExample)
case "path":
path.Solve()
default: