watchyourlan/cmd/WatchYourLAN/main.go
2023-01-07 15:38:45 +07:00

22 lines
420 B
Go

package main
import (
"flag"
"github.com/aceberg/WatchYourLAN/internal/check"
"github.com/aceberg/WatchYourLAN/internal/web"
)
const configPath = "/data/config"
const bootPath = ""
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
}