Documentation ¶
Index ¶
- Variables
- func AddBabbleFlags(cmd *cobra.Command)
- func AddRaftFlags(cmd *cobra.Command)
- func AddSoloFlags(cmd *cobra.Command)
- func AddTendermintFlags(cmd *cobra.Command)
- func NewBabbleCmd() *cobra.Command
- func NewRaftCmd() *cobra.Command
- func NewSoloCmd() *cobra.Command
- func NewTendermintCmd() *cobra.Command
- func ParseConfig() (*tmConfig.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "evml", Short: "EVM-Lite node", TraverseChildren: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) { if cmd.Name() == VersionCmd.Name() { return nil } if err := bindFlagsLoadViper(cmd); err != nil { return err } config, err = parseConfig() if err != nil { return err } logger = logrus.New() logger.Level = logLevel(config.BaseConfig.LogLevel) config.SetDataDir(config.BaseConfig.DataDir) logger.WithFields(logrus.Fields{ "Base": config.BaseConfig, "Eth": config.Eth}).Debug("Config") return nil }, }
RootCmd is the root command for evml
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "Show version info", Run: func(cmd *cobra.Command, args []string) { fmt.Println(version.Version) }, }
VersionCmd displays the version of evml being used
Functions ¶
func AddBabbleFlags ¶
AddBabbleFlags adds flags to the Babble command
func AddRaftFlags ¶
AddRaftFlags adds flags to the Raft command
func AddSoloFlags ¶
AddSoloFlags adds flags to the Solo command
func AddTendermintFlags ¶
AddTendermintFlags adds flags to the Tendermint command
func NewBabbleCmd ¶
NewBabbleCmd returns the command that starts EVM-Lite with Babble consensus
func NewRaftCmd ¶
NewRaftCmd returns the command that starts EVM-Lite with Raft consensus
func NewSoloCmd ¶
NewSoloCmd returns the command that starts EVM-Lite with Solo consensus
func NewTendermintCmd ¶
NewTendermintCmd returns the command that starts EVM-Lite with Tendermint consensus
func ParseConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.