Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "babble", Short: "babble consensus", TraverseChildren: true, }
RootCmd is the root command for Babble
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 babble being used
Functions ¶
func AddKeygenFlags ¶
AddKeygenFlags adds flags to the keygen command
func NewKeygenCmd ¶
NewKeygenCmd produces a KeygenCmd which create a key pair
Types ¶
type CLIConfig ¶
type CLIConfig struct { Babble babble.BabbleConfig `mapstructure:",squash"` ProxyAddr string `mapstructure:"proxy-listen"` ClientAddr string `mapstructure:"client-connect"` Standalone bool `mapstructure:"standalone"` }
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.