watchyourlan/cmd/WatchYourLAN/main.go
2023-01-07 01:29:47 +07:00

24 lines
486 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/bootswatch/dist/sketchy"
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
}