commands

package
v0.1.7-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2019 License: GPL-3.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagChainID   = "chain-id"
	FlagENV       = "env"
	FlagVMGenesis = "vm-genesis"
)
View Source
const (
	FlagLogLevel = "log_level"
	FlagPassword = "password"
	FlagLightKDF = "lightkdf"
)

nolint

View Source
const EyesCacheSize = 10000

nolint

View Source
const (
	SubFlag = "sub"
)

Variables

View Source
var InitCmd = GetInitCmd()
View Source
var RemoveAddrBookCmd = &cobra.Command{
	Use:   "unsafe_remove_addrbook",
	Short: "(unsafe) Remove address book file",
	Run:   removeAddrBook,
}

RemoveAddrBookCmd removes the address book file.

View Source
var ResetPrivValidatorCmd = &cobra.Command{
	Use:   "unsafe_reset_priv_validator",
	Short: "(unsafe) Reset this node's validator to genesis state",
	Run:   resetPrivValidator,
}

ResetPrivValidatorCmd resets the private validator files.

View Source
var ShowNodeIDCmd = &cobra.Command{
	Use:   "show_node_id",
	Short: "Show this node's ID",
	RunE:  showNodeID,
}

ShowNodeIDCmd dumps node's ID to the standard output.

Functions

func AppendVMConfig

func AppendVMConfig(configFilePath string, conf *TravisConfig)

func GetInitCmd

func GetInitCmd() *cobra.Command

func GetStartCmd

func GetStartCmd() *cobra.Command

GetStartCmd - initialize a command as the start command with tick

func SetUpRoot

func SetUpRoot(cmd *cobra.Command)

SetUpRoot - initialize the root command

func SetupAccountContext

func SetupAccountContext() (*cli.Context, error)

Types

type BaseConfig

type BaseConfig struct {
	// The root directory for all data.
	// This should be set in viper so it can unmarshal into this struct
	RootDir string `mapstructure:"home"`
}

func DefaultBaseConfig

func DefaultBaseConfig() BaseConfig

type EthermintConfig

type EthermintConfig struct {
	ChainId             uint   `mapstructure:"chainid"`
	RootDir             string `mapstructure:"home"`
	ABCIAddr            string `mapstructure:"abci_laddr"`
	ABCIProtocol        string `mapstructure:"abci_protocol"`
	RPCEnabledFlag      bool   `mapstructure:"rpc"`
	RPCListenAddrFlag   string `mapstructure:"rpcaddr"`
	RPCPortFlag         uint   `mapstructure:"rpcport"`
	RPCCORSDomainFlag   string `mapstructure:"rpccorsdomain"`
	RPCApiFlag          string `mapstructure:"rpcapi"`
	RPCVirtualHostsFlag string `mapstructure:"rpcvhosts"`
	WSEnabledFlag       bool   `mapstructure:"ws"`
	WSListenAddrFlag    string `mapstructure:"wsaddr"`
	WSPortFlag          uint   `mapstructure:"wsport"`
	WSApiFlag           string `mapstructure:"wsapi"`
	IPCDisabledFlag     bool   `mapstructure:"ipcdisable"`
	VerbosityFlag       uint   `mapstructure:"verbosity"`
	GCMode              string `mapstructure:"gcmode"`
	ListenPortFlag      uint   `mapstructure:"listenport"`
	LightKDFFlag        bool   `mapstructure:"lightkdf"`
}

func DefaultEthermintConfig

func DefaultEthermintConfig() EthermintConfig

type Services

type Services struct {
	// contains filtered or unexported fields
}

type TravisConfig

type TravisConfig struct {
	BaseConfig BaseConfig      `mapstructure:",squash"`
	TMConfig   tmcfg.Config    `mapstructure:",squash"`
	EMConfig   EthermintConfig `mapstructure:"vm"`
}

func DefaultConfig

func DefaultConfig() *TravisConfig

func ParseConfig

func ParseConfig() (*TravisConfig, error)

copied from tendermint/commands/root.go to call our revised EnsureRoot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL