Merge PR #3343: Enrich version command's output
This commit is contained in:
committed by
Christopher Goes
parent
fae7852b61
commit
bf59291a79
+6
-1
@@ -2,6 +2,7 @@ package version
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@@ -22,5 +23,9 @@ func GetVersion() string {
|
||||
|
||||
// CMD
|
||||
func printVersion(cmd *cobra.Command, args []string) {
|
||||
fmt.Println(GetVersion())
|
||||
fmt.Println("cosmos-sdk:", GetVersion())
|
||||
fmt.Println("git commit:", Commit)
|
||||
fmt.Println("vendor hash:", VendorDirHash)
|
||||
fmt.Printf("go version %s %s/%s\n",
|
||||
runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user