2024-10-11 13:55:13 -05:00
|
|
|
// Copyright 2024 WIT.COM Inc Licensed GPL 3.0
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-10-12 00:17:26 -05:00
|
|
|
// "log"
|
|
|
|
"embed"
|
2024-10-11 13:55:13 -05:00
|
|
|
"os"
|
|
|
|
|
|
|
|
"go.wit.com/dev/alexflint/arg"
|
2024-10-12 00:17:26 -05:00
|
|
|
"go.wit.com/log"
|
2024-10-11 13:55:13 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
var Version string
|
2024-10-12 00:17:26 -05:00
|
|
|
|
|
|
|
//go:embed resources/*
|
|
|
|
var resources embed.FS
|
2024-10-11 13:55:13 -05:00
|
|
|
|
|
|
|
func main() {
|
2024-10-12 00:17:26 -05:00
|
|
|
pp := arg.MustParse(&argv)
|
2024-10-11 13:55:13 -05:00
|
|
|
|
2024-10-12 00:17:26 -05:00
|
|
|
if ! argv.Uptime {
|
2024-10-11 13:55:13 -05:00
|
|
|
pp.WriteHelp(os.Stdout)
|
|
|
|
os.Exit(0)
|
|
|
|
}
|
|
|
|
|
2024-10-12 00:17:26 -05:00
|
|
|
log.Info("connect to cluser here", argv.Hosts)
|
|
|
|
for i, s := range argv.Hosts {
|
|
|
|
log.Info("i, s =", i, s)
|
|
|
|
}
|
|
|
|
|
|
|
|
startHTTP()
|
2024-10-11 13:55:13 -05:00
|
|
|
}
|