forked from TrueCloudLab/frostfs-s3-gw
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:
parent
ef8684c11d
commit
92c8cce933
7 changed files with 33 additions and 36 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue