2021-04-18 16:39:15 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
2022-06-19 09:43:41 +00:00
|
|
|
"github.com/evmos/ethermint/version"
|
2021-04-18 16:39:15 +00:00
|
|
|
)
|
|
|
|
|
2022-12-02 12:57:14 +00:00
|
|
|
const flagLong = "long"
|
2021-04-18 16:39:15 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
infoCmd.Flags().Bool(flagLong, false, "Print full information")
|
|
|
|
}
|
|
|
|
|
2021-09-05 11:03:06 +00:00
|
|
|
var infoCmd = &cobra.Command{
|
|
|
|
Use: "info",
|
|
|
|
Short: "Print version info",
|
|
|
|
RunE: func(_ *cobra.Command, _ []string) error {
|
|
|
|
fmt.Println(version.Version())
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
}
|