watchyourlan/cmd/WatchYourLAN/main.go
2023-10-05 23:10:44 +07:00

21 lines
416 B
Go

package main
import (
"flag"
"github.com/aceberg/WatchYourLAN/internal/check"
"github.com/aceberg/WatchYourLAN/internal/web"
)
const configPath = "/data/config.yaml"
const nodePath = ""
func main() {
confPtr := flag.String("c", configPath, "Path to config file")
nodePtr := flag.String("n", nodePath, "Path to node modules")
flag.Parse()
check.Path(*confPtr)
web.Gui(*confPtr, *nodePtr) // webgui.go
}