2021-04-18 16:39:15 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
2021-06-22 10:49:18 +00:00
|
|
|
"github.com/tharsis/ethermint/version"
|
2021-04-18 16:39:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2021-05-10 16:34:00 +00:00
|
|
|
flagLong = "long"
|
2021-04-18 16:39:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
infoCmd.Flags().Bool(flagLong, false, "Print full information")
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
infoCmd = &cobra.Command{
|
|
|
|
Use: "info",
|
|
|
|
Short: "Print version info",
|
|
|
|
RunE: func(_ *cobra.Command, _ []string) error {
|
|
|
|
fmt.Println(version.Version())
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
}
|
|
|
|
)
|