From 02d7bb6810c86967ba25bab7ee7a6285fd35fb4f Mon Sep 17 00:00:00 2001 From: aleem1314 Date: Thu, 20 May 2021 16:31:37 +0530 Subject: [PATCH] add skip invariant flag --- app/regen/cmd/root.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/regen/cmd/root.go b/app/regen/cmd/root.go index d868de6622..efe7e1e960 100644 --- a/app/regen/cmd/root.go +++ b/app/regen/cmd/root.go @@ -25,6 +25,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/types" vestingcli "github.com/cosmos/cosmos-sdk/x/auth/vesting/client/cli" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/cosmos/cosmos-sdk/x/crisis" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" "github.com/rs/zerolog" "github.com/spf13/cast" @@ -114,7 +115,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { config.Cmd(), ) - server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, createRegenappAndExport, func(startCmd *cobra.Command) {}) + server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, createRegenappAndExport, addModuleInitFlags) // add keybase, auxiliary RPC, query, and tx child commands rootCmd.AddCommand( @@ -125,6 +126,10 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { ) } +func addModuleInitFlags(startCmd *cobra.Command) { + crisis.AddModuleInitFlags(startCmd) +} + func queryCommand() *cobra.Command { cmd := &cobra.Command{ Use: "query",