github.com/adoriasoft/tendermint@v0.34.0-dev1.0.20200722151356-96d84601a75a/cmd/tendermint/commands/version.go (about) 1 package commands 2 3 import ( 4 "fmt" 5 6 "github.com/spf13/cobra" 7 8 "github.com/tendermint/tendermint/version" 9 ) 10 11 // VersionCmd ... 12 var VersionCmd = &cobra.Command{ 13 Use: "version", 14 Short: "Show version info", 15 Run: func(cmd *cobra.Command, args []string) { 16 fmt.Println(version.Version) 17 }, 18 }