Documentation ¶
Index ¶
Constants ¶
View Source
const ( HomeFlag = "home" TraceFlag = "trace" OutputFlag = "output" EncodingFlag = "encoding" )
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func ParseLogLevel ¶
ParseLogLevel parses complex log level - comma-separated list of module:level pairs with an optional *:level pair (* means all other modules).
Example:
ParseLogLevel("consensus:debug,mempool:debug,*:error", log.NewTMLogger(os.Stdout), "info")
Types ¶
type Executable ¶
type Executable interface {
Execute() error
}
Executable is the minimal interface to *corba.Command, so we can wrap if desired before the test
type Executor ¶
type Executor struct { *cobra.Command Exit func(int) // this is os.Exit by default, override in tests }
Executor wraps the cobra Command with a nicer Execute method
func PrepareBaseCmd ¶
PrepareBaseCmd is meant for aaexplorer and other servers
func PrepareMainCmd ¶
PrepareMainCmd is meant for client side libs that want some more flags
This adds --encoding (hex, btc, base64) and --output (text, json) to the command. These only really make sense in interactive commands.
Click to show internal directories.
Click to hide internal directories.