Documentation ¶
Overview ¶
Package commands This version will be built when no tag MULTI is used in go build
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "lachesis", Short: "lachesis consensus", TraverseChildren: true, }
RootCmd is the root command for Lachesis
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 lachesis being used
Functions ¶
func AddKeygenFlags ¶
AddKeygenFlags adds flags to the keygen command
func NewKeygenCmd ¶
NewKeygenCmd produces a KeygenCmd which creates a key pair
Types ¶
type CLIConfig ¶
type CLIConfig struct { Lachesis lachesis.LachesisConfig `mapstructure:",squash"` ProxyAddr string `mapstructure:"proxy-listen"` ClientAddr string `mapstructure:"client-connect"` Standalone bool `mapstructure:"standalone"` Log2file bool `mapstructure:"log2file"` Pidfile string `mapstructure:"pidfile"` Syslog bool `mapstructure:"syslog"` }
CLIConfig contains configuration for the Run command
func NewDefaultCLIConfig ¶
func NewDefaultCLIConfig() *CLIConfig
NewDefaultCLIConfig creates a CLIConfig with default values
Click to show internal directories.
Click to hide internal directories.