update build and deps
This commit is contained in:
parent
da00661c92
commit
d6101c38b7
|
|
@ -1,6 +1,6 @@
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.14.x
|
- 1.15.x
|
||||||
before_install:
|
before_install:
|
||||||
# download super-linter: golangci-lint
|
# download super-linter: golangci-lint
|
||||||
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,10 @@
|
||||||
module github.com/unifi-poller/poller
|
module github.com/unifi-poller/poller
|
||||||
|
|
||||||
go 1.14
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/BurntSushi/toml v0.3.1 // indirect
|
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
|
||||||
github.com/golang/protobuf v1.4.2 // indirect
|
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b
|
||||||
github.com/prometheus/client_golang v1.6.0 // indirect
|
golift.io/cnfg v0.0.7
|
||||||
github.com/prometheus/common v0.10.0
|
golift.io/version v0.0.2
|
||||||
github.com/prometheus/procfs v0.1.1 // indirect
|
|
||||||
github.com/spf13/pflag v1.0.5
|
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
|
|
||||||
golang.org/x/net v0.0.0-20200602114024-627f9648deb9 // indirect
|
|
||||||
golang.org/x/sys v0.0.0-20200610111108-226ff32320da // indirect
|
|
||||||
golift.io/cnfg v0.0.5
|
|
||||||
google.golang.org/protobuf v1.24.0 // indirect
|
|
||||||
gopkg.in/yaml.v2 v2.3.0 // indirect
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/prometheus/common/version"
|
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
"golift.io/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// New returns a new poller struct.
|
// New returns a new poller struct.
|
||||||
|
|
@ -25,7 +25,7 @@ func (u *UnifiPoller) Start() error {
|
||||||
u.Flags.Parse(os.Args[1:])
|
u.Flags.Parse(os.Args[1:])
|
||||||
|
|
||||||
if u.Flags.ShowVer {
|
if u.Flags.ShowVer {
|
||||||
fmt.Printf("%s v%s\n", AppName, version.Version)
|
fmt.Println(version.Print(AppName))
|
||||||
return nil // don't run anything else w/ version request.
|
return nil // don't run anything else w/ version request.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue