From 2fee7d2577b8f2d1505e8119a7e06d5b35b4c250 Mon Sep 17 00:00:00 2001 From: Pavel Korotkov Date: Tue, 7 Jul 2020 10:07:59 +0300 Subject: [PATCH] Extract the app name --- app-settings.go | 2 +- misc/build.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app-settings.go b/app-settings.go index 9bff9ddd3..ec5b17898 100644 --- a/app-settings.go +++ b/app-settings.go @@ -97,7 +97,7 @@ func newSettings() *viper.Viper { peers := flags.StringArrayP("peers", "p", nil, "NeoFS nodes") // set prefers: - v.Set("app.name", "neofs-gw") + v.Set("app.name", misc.ApplicationName) v.Set("app.version", misc.Version) v.Set("app.build_time", misc.Build) diff --git a/misc/build.go b/misc/build.go index 3d82ab96f..99da0c8c6 100644 --- a/misc/build.go +++ b/misc/build.go @@ -1,5 +1,7 @@ package misc +const ApplicationName = "neofs-s3-gateway" + var ( Build = "now" Version = "dev"