mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-02 06:07:08 +00:00
## Description Add version back to versions, but allow it to be overridden via a ldflag. Reason: Many users are not setting the ldflag causing issues with tooling that relies on it (cosmjs) closes #6488 cc @webmaster128
19 lines
295 B
Go
19 lines
295 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/tendermint/tendermint/version"
|
|
)
|
|
|
|
// VersionCmd ...
|
|
var VersionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Show version info",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(version.TMVersion)
|
|
},
|
|
}
|