Files
tendermint/cmd/tendermint/commands/version.go
rigelrozanski 569fd474c2 added use of Cobra CLI
squash
2017-03-06 17:30:06 -05:00

22 lines
324 B
Go

package commands
import (
"fmt"
"github.com/spf13/cobra"
"github.com/tendermint/tendermint/version"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Show version info",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version.Version)
},
}
func init() {
RootCmd.AddCommand(versionCmd)
}