Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
fix build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed Nov 2, 2020
1 parent 2aa2e5e commit e37f293
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/rtrdump/rtrdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ import (
)

const (
version = ""
buildinfos = ""
AppVersion = "RTRdump " + version + " " + buildinfos

ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
ENV_SSH_KEY = "RTR_SSH_KEY"

Expand All @@ -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")

Expand Down
8 changes: 4 additions & 4 deletions cmd/rtrmon/rtrmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ import (
)

const (
version = ""
buildinfos = ""
AppVersion = "RTRmon " + version + " " + buildinfos

ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
ENV_SSH_KEY = "RTR_SSH_KEY"

Expand All @@ -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")
Expand Down

0 comments on commit e37f293

Please sign in to comment.