watchyourlan/cmd/WatchYourLAN/main.go
2023-01-07 03:38:59 +07:00

24 lines
462 B
Go

package main
import (
"flag"
"github.com/aceberg/WatchYourLAN/internal/check"
"github.com/aceberg/WatchYourLAN/internal/web"
)
const configPath = "/data/config"
const bootPath = ""
// const bootPath = "/data/node_modules"
func main() {
confPtr := flag.String("c", configPath, "Path to config file")
bootPtr := flag.String("b", bootPath, "Path to local Bootswatch")
flag.Parse()
check.Path(*confPtr)
web.Gui(*confPtr, *bootPtr) // Start web GUI
}