Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "tendermint", Short: "Tendermint Core (BFT Consensus) in Go", PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) { if cmd.Name() == versionCmd.Name() { return nil } config, err = ParseConfig() if err != nil { return err } logger, err = tmflags.ParseLogLevel(config.LogLevel, logger, cfg.DefaultLogLevel()) if err != nil { return err } if viper.GetBool(cli.TraceFlag) { logger = log.NewTracingLogger(logger) } return nil }, }
Functions ¶
func AddNodeFlags ¶ added in v0.15.0
AddNodeFlags exposes some common configuration options on the command-line These are exposed for convenience of commands embedding a tendermint node
func ParseConfig ¶ added in v0.15.0
ParseConfig retrieves the default environment configuration, sets up the Tendermint root and ensures that the root exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.