misc: move to internal/version, use for all binaries

No libmisc, please.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2021-05-20 15:41:32 +03:00
parent ef8684c11d
commit 92c8cce933
7 changed files with 33 additions and 36 deletions

View file

@ -15,6 +15,7 @@ import (
"github.com/nspcc-dev/cdn-sdk/pool"
"github.com/nspcc-dev/neofs-api-go/pkg/container"
"github.com/nspcc-dev/neofs-s3-gw/authmate"
"github.com/nspcc-dev/neofs-s3-gw/internal/version"
"github.com/urfave/cli/v2"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
@ -30,11 +31,6 @@ const (
poolRequestTimeout = 5 * time.Second
)
var (
// Version of the program.
Version = "dev"
)
var (
neoFSKeyPathFlag string
peerAddressFlag string
@ -89,7 +85,7 @@ func main() {
app := &cli.App{
Name: "NeoFS gate authentication manager",
Usage: "Helps manage delegated access via gates to data stored in NeoFS network",
Version: Version,
Version: version.Version,
Flags: appFlags(),
Commands: appCommands(),
}