From 54cb6bb959a0bb343fdc426833f1322a10d99f1c Mon Sep 17 00:00:00 2001 From: Paul Weidner Date: Mon, 8 Jan 2024 12:45:34 -0800 Subject: [PATCH] feat: add pruning subcommand (#2124) --- app/client/cli/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/client/cli/root.go b/app/client/cli/root.go index 79143d66b3..3fe874beb6 100644 --- a/app/client/cli/root.go +++ b/app/client/cli/root.go @@ -19,6 +19,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/cosmos/cosmos-sdk/client/pruning" "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server" @@ -179,6 +180,8 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig app.EncodingConfig) { txCommand(), keys.Commands(app.DefaultNodeHome), ) + + rootCmd.AddCommand(pruning.PruningCmd(newApp)) } func addModuleInitFlags(startCmd *cobra.Command) {