const ( HomeFlag = "home" TraceFlag = "trace" OutputFlag = "output" EncodingFlag = "encoding" )
NewCompletionCmd returns a cobra.Command that generates bash and zsh completion scripts for the given root command. If hidden is true, the command will not show up in the root command's list of available commands.
RunCaptureWithArgs executes the given command with the specified command line args and environmental variables set. It returns string fields representing output written to stdout and stderr, additionally any error from cmd.Execute() is also returned
RunWithArgs executes the given command with the specified command line args and environmental variables set. It returns any error returned from cmd.Execute()
WriteConfigVals writes a toml file with the given values. It returns an error if writing was impossible.
Executable is the minimal interface to *corba.Command, so we can wrap if desired before the test
Executor wraps the cobra Command with a nicer Execute method
PrepareBaseCmd is meant for tendermint and other servers
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.
execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.