diff --git a/cmd/rtrdump/rtrdump.go b/cmd/rtrdump/rtrdump.go index df3d31f..e25233e 100644 --- a/cmd/rtrdump/rtrdump.go +++ b/cmd/rtrdump/rtrdump.go @@ -19,10 +19,6 @@ import ( ) const ( - version = "" - buildinfos = "" - AppVersion = "RTRdump " + version + " " + buildinfos - ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD" ENV_SSH_KEY = "RTR_SSH_KEY" @@ -32,6 +28,10 @@ const ( ) var ( + version = "" + buildinfos = "" + AppVersion = "RTRdump " + version + " " + buildinfos + Connect = flag.String("connect", "127.0.0.1:8282", "Connection address") OutFile = flag.String("file", "output.json", "Output file") diff --git a/cmd/rtrmon/rtrmon.go b/cmd/rtrmon/rtrmon.go index f86dddc..67f1f1a 100644 --- a/cmd/rtrmon/rtrmon.go +++ b/cmd/rtrmon/rtrmon.go @@ -25,10 +25,6 @@ import ( ) const ( - version = "" - buildinfos = "" - AppVersion = "RTRmon " + version + " " + buildinfos - ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD" ENV_SSH_KEY = "RTR_SSH_KEY" @@ -38,6 +34,10 @@ const ( ) var ( + version = "" + buildinfos = "" + AppVersion = "RTRmon " + version + " " + buildinfos + OneOff = flag.Bool("oneoff", false, "dump as json and exits") Addr = flag.String("addr", ":8080", "Server address") MetricsPath = flag.String("metrics", "/metrics", "Metrics path")