diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -3,23 +3,31 @@ package main import ( -// "log" + // "log" + "embed" "os" - "go.wit.com/log" "go.wit.com/dev/alexflint/arg" + "go.wit.com/log" ) var Version string -var myargs args + +//go:embed resources/* +var resources embed.FS func main() { - pp := arg.MustParse(&myargs) + pp := arg.MustParse(&argv) - if myargs.Uptime { + if ! argv.Uptime { pp.WriteHelp(os.Stdout) os.Exit(0) } - log.Info("connect to cluser here", myargs.Hosts) + log.Info("connect to cluser here", argv.Hosts) + for i, s := range argv.Hosts { + log.Info("i, s =", i, s) + } + + startHTTP() } |
