18 lines
328 B
Go
18 lines
328 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
"github.com/tendermint/basecoin/version"
|
||
|
)
|
||
|
|
||
|
// VersionCmd - command to show the application version
|
||
|
var VersionCmd = &cobra.Command{
|
||
|
Use: "version",
|
||
|
Short: "Show version info",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
fmt.Println(version.Version)
|
||
|
},
|
||
|
}
|