[#1] Fix version output for all compiled binaries

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-01-27 13:41:03 +03:00 committed by fyrchik
parent 89a0266f5e
commit 406ff1360f
5 changed files with 5 additions and 5 deletions

View file

@ -52,7 +52,7 @@ func Execute() error {
func entryPoint(cmd *cobra.Command, args []string) error {
printVersion, _ := cmd.Flags().GetBool("version")
if printVersion {
cmd.Print(misc.BuildInfo("NeoFS Adm"))
cmd.Print(misc.BuildInfo("FrostFS Adm"))
return nil
}

View file

@ -89,7 +89,7 @@ func init() {
func entryPoint(cmd *cobra.Command, _ []string) {
printVersion, _ := cmd.Flags().GetBool("version")
if printVersion {
cmd.Print(misc.BuildInfo("NeoFS CLI"))
cmd.Print(misc.BuildInfo("FrostFS CLI"))
return
}

View file

@ -39,7 +39,7 @@ func main() {
flag.Parse()
if *versionFlag {
fmt.Print(misc.BuildInfo("NeoFS Inner Ring node"))
fmt.Print(misc.BuildInfo("FrostFS Inner Ring node"))
os.Exit(SuccessReturnCode)
}

View file

@ -22,7 +22,7 @@ var command = &cobra.Command{
func entryPoint(cmd *cobra.Command, _ []string) error {
printVersion, _ := cmd.Flags().GetBool("version")
if printVersion {
cmd.Print(misc.BuildInfo("NeoFS Lens"))
cmd.Print(misc.BuildInfo("FrostFS Lens"))
return nil
}

View file

@ -41,7 +41,7 @@ func main() {
flag.Parse()
if *versionFlag {
fmt.Print(misc.BuildInfo("NeoFS Storage node"))
fmt.Print(misc.BuildInfo("FrostFS Storage node"))
os.Exit(SuccessReturnCode)
}