add nats-api binary
This commit is contained in:
parent
a13f6f1e68
commit
5ef6a14d24
9
main.go
9
main.go
|
@ -2,14 +2,23 @@ package main
|
|||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"github.com/wh1te909/tacticalrmm/natsapi"
|
||||
)
|
||||
|
||||
var version = "1.0.0"
|
||||
|
||||
func main() {
|
||||
ver := flag.Bool("version", false, "Prints version")
|
||||
apiHost := flag.String("api-host", "", "django api base url")
|
||||
debug := flag.Bool("debug", false, "Debug")
|
||||
flag.Parse()
|
||||
|
||||
if *ver {
|
||||
fmt.Println(version)
|
||||
return
|
||||
}
|
||||
|
||||
api.Listen(*apiHost, *debug)
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue