This commit is contained in:
Quentin McGaw
2020-08-29 19:14:52 +00:00
parent 049bc5b226
commit aac5274eab
8 changed files with 25 additions and 42 deletions

View File

@@ -31,6 +31,13 @@ import (
"github.com/qdm12/golibs/network"
)
//nolint:gochecknoglobals
var (
version = "unknown"
commit = "unknown"
buildDate = "an unknown date"
)
func main() {
ctx := context.Background()
os.Exit(_main(ctx, os.Args))
@@ -73,10 +80,7 @@ func _main(background context.Context, args []string) int { //nolint:gocognit,go
streamMerger := command.NewStreamMerger()
paramsReader := params.NewReader(logger, fileManager)
fmt.Println(gluetunLogging.Splash(
paramsReader.GetVersion(),
paramsReader.GetVcsRef(),
paramsReader.GetBuildDate()))
fmt.Println(gluetunLogging.Splash(version, commit, buildDate))
printVersions(ctx, logger, map[string]func(ctx context.Context) (string, error){
"OpenVPN": ovpnConf.Version,