From 357426426fd3b3510f4f555ff030266cb8e999c4 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 15 Aug 2022 16:39:02 +0300 Subject: [PATCH] [#49] Unify app version format Signed-off-by: Denis Kirillov --- CHANGELOG.md | 3 +++ cmd/neofs-rest-gw/config.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bae2d9b..d9a680f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ This document outlines major changes between releases. ## [Unreleased] +### Changed +- Unify application version format (#49) + ## [0.3.0] "Thunder Bluff" - 2022-08-15 ### Added diff --git a/cmd/neofs-rest-gw/config.go b/cmd/neofs-rest-gw/config.go index 01b487d..f11f367 100644 --- a/cmd/neofs-rest-gw/config.go +++ b/cmd/neofs-rest-gw/config.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "runtime" "sort" "strconv" "strings" @@ -161,7 +162,7 @@ func config() *viper.Viper { os.Exit(0) case version != nil && *version: - fmt.Printf("NeoFS REST Gateway %s\n", Version) + fmt.Printf("NeoFS REST Gateway\nVersion: %s\nGoVersion: %s\n", Version, runtime.Version()) os.Exit(0) }