{"modulePath":"github.com/functionx/fx-core","version":"v1.1.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Constants\n\n```go\nconst (\n\tOutputFormatText = \"text\"\n\tOutputFormatJSON = \"json\"\n)\n```\navailable output formats.\n\n```go\nconst (\n\tFlagLogFilter = \"log_filter\"\n)\n```\n\n## Functions\n\n```go\nfunc AddCmdLogWrapFilterLogType(cmd *cobra.Command) error\n```\n\n```go\nfunc AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command\n```\nAddGenesisAccountCmd returns add-genesis-account cobra Command.\n\n```go\nfunc AddrCmd() *cobra.Command\n```\n\n```go\nfunc AppTomlCmd() *cobra.Command\n```\n\n```go\nfunc Base64ToString() *cobra.Command\n```\n\n```go\nfunc BuildCreateValidatorMsg(clientCtx client.Context, config cli.TxCreateValidatorConfig, txBldr tx.Factory) (tx.Factory, sdk.Msg, error)\n```\nBuildCreateValidatorMsg makes a new MsgCreateValidator.\n\n```go\nfunc CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command\n```\nCollectGenTxsCmd - return the cobra command to collect genesis transactions\n\n```go\nfunc CollectTxs(cdc codec.JSONMarshaler, txJSONDecoder sdk.TxDecoder, moniker, genTxsDir string,\n\tgenDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator,\n) (appGenTxs []sdk.Tx, persistentPeers string, err error)\n```\nCollectTxs processes and validates application's genesis Txs and returns the list of appGenTxs, and persistent peers required to generate genesis.json.\n\n```go\nfunc ConfigTomlCmd() *cobra.Command\n```\n\n```go\nfunc CovertTxDataToHash() *cobra.Command\n```\n\n```go\nfunc Debug() *cobra.Command\n```\n\n```go\nfunc GenAppStateFromConfig(cdc codec.JSONMarshaler, txEncodingConfig client.TxEncodingConfig,\n\tconfig *cfg.Config, initCfg types.InitConfig, genDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator,\n) (appState json.RawMessage, err error)\n```\nGenAppStateFromConfig gets the genesis app state from the config\n\n```go\nfunc GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command\n```\nGenTxCmd builds the application's gentx command.\n\n```go\nfunc HexExternalAddress() *cobra.Command\n```\n\n```go\nfunc HexToString() *cobra.Command\n```\n\n```go\nfunc KeyCommands(defaultNodeHome string) *cobra.Command\n```\nKeyCommands registers a sub-tree of commands to interact with local private key storage.\n\n```go\nfunc ModuleAddressCmd() *cobra.Command\n```\n\n```go\nfunc NewLegacyKeyBaseFromDir(rootDir string, opts ...cryptokeyring.KeybaseOption) (cryptokeyring.LegacyKeybase, error)\n```\nNewLegacyKeyBaseFromDir initializes a legacy keybase at the rootDir directory. Keybase options can be applied when generating this new Keybase.\n\n```go\nfunc ParseTx() *cobra.Command\n```\n\n```go\nfunc PrintOutput(ctx client.Context, out []byte) error\n```\n\n```go\nfunc PubkeyCmd() *cobra.Command\n```\n\n```go\nfunc QueryBlockResultsCmd() *cobra.Command\n```\n\n```go\nfunc QueryStoreCmd() *cobra.Command\n```\n\n```go\nfunc RawBytesCmd() *cobra.Command\n```\n\n```go\nfunc UpdateNodeKeyCmd() *cobra.Command\n```\n\n```go\nfunc UpdateValidatorKeyCmd() *cobra.Command\n```\n\n## Types\n\n```go\ntype FxZeroLogWrapper struct {\n\tserver.ZeroLogWrapper\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewFxZeroLogWrapper(logger server.ZeroLogWrapper, logTypes []string) FxZeroLogWrapper\n```\n\n```go\nfunc (z FxZeroLogWrapper) Info(msg string, keyVals ...interface{})\n```\n\n```go\nfunc (z FxZeroLogWrapper) With(keyVals ...interface{}) tmlog.Logger\n```\nWith returns a new wrapped logger with additional context provided by a set of key/value tuples. The number of tuples must be even and the key of the tuple must be a string.\n\n```go\ntype PrintInfo struct {\n\tMoniker    string          `json:\"moniker\" yaml:\"moniker\"`\n\tChainID    string          `json:\"chain_id\" yaml:\"chain_id\"`\n\tNodeID     string          `json:\"node_id\" yaml:\"node_id\"`\n\tGenTxsDir  string          `json:\"gentxs_dir\" yaml:\"gentxs_dir\"`\n\tAppMessage json.RawMessage `json:\"app_message\" yaml:\"app_message\"`\n}\n```\n\n```go\nfunc NewPrintInfo(moniker, chainID, nodeID, genTxsDir string, appMessage json.RawMessage) PrintInfo\n```\n\n","path":"github.com/functionx/fx-core/app/cli","name":"cli","synopsis":"","isRedistributable":true}
