[#1] Fix version output for all compiled binaries
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
89a0266f5e
commit
406ff1360f
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue