diff --git a/main.go b/main.go index 23986c53..5dc1e93f 100644 --- a/main.go +++ b/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) } diff --git a/natsapi/bin/nats-api b/natsapi/bin/nats-api new file mode 100755 index 00000000..0eaafe6a Binary files /dev/null and b/natsapi/bin/nats-api differ