tacticalrmm/main.go

25 lines
378 B
Go
Raw Normal View History

2021-01-12 06:32:00 +00:00
package main
import (
2021-01-12 21:14:43 +00:00
"flag"
2021-01-15 18:21:25 +00:00
"fmt"
2021-01-12 21:14:43 +00:00
2021-01-12 06:32:00 +00:00
"github.com/wh1te909/tacticalrmm/natsapi"
)
2021-01-15 18:21:25 +00:00
var version = "1.0.0"
2021-01-12 06:32:00 +00:00
func main() {
2021-01-15 18:21:25 +00:00
ver := flag.Bool("version", false, "Prints version")
2021-01-12 21:14:43 +00:00
apiHost := flag.String("api-host", "", "django api base url")
debug := flag.Bool("debug", false, "Debug")
flag.Parse()
2021-01-15 18:21:25 +00:00
if *ver {
fmt.Println(version)
return
}
2021-01-12 21:14:43 +00:00
api.Listen(*apiHost, *debug)
2021-01-12 06:32:00 +00:00
}