genesisCommand builds genesis-related `simd genesis` command. Users may provide application specific commands as a parameter
(encodingConfig sdkutil.EncodingConfig, cmds ...*cobra.Command)
| 97 | |
| 98 | // genesisCommand builds genesis-related `simd genesis` command. Users may provide application specific commands as a parameter |
| 99 | func genesisCommand(encodingConfig sdkutil.EncodingConfig, cmds ...*cobra.Command) *cobra.Command { |
| 100 | home := app.DefaultHome |
| 101 | |
| 102 | cmd := cli.GetGenesisCmd(app.ModuleBasics(), encodingConfig.TxConfig, app.DefaultHome, encodingConfig.SigningOptions.ValidatorAddressCodec) |
| 103 | |
| 104 | for _, subCmd := range cmds { |
| 105 | cmd.AddCommand(subCmd) |
| 106 | } |
| 107 | |
| 108 | cmd.AddCommand(AddGenesisAccountCmd(home)) |
| 109 | |
| 110 | return cmd |
| 111 | } |
no test coverage detected