Skip to content

Commit

Permalink
Move show height and convert prefix cmd to debug category
Browse files Browse the repository at this point in the history
Ref #187
  • Loading branch information
elise-ng committed Apr 20, 2022
1 parent 6963624 commit 6928147
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/liked/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ func NewRootCmd() (*cobra.Command, app.EncodingConfig) {
config := sdk.GetConfig()
config.Seal()

debugCmd := debug.Cmd()
debugCmd.AddCommand(
ShowHeightCommand(),
ConvertPrefixCommand(),
)

rootCmd.AddCommand(
genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome),
genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome),
Expand All @@ -192,7 +198,7 @@ func NewRootCmd() (*cobra.Command, app.EncodingConfig) {
genutilcli.ValidateGenesisCmd(app.ModuleBasics),
simappcli.AddGenesisAccountCmd(app.DefaultNodeHome),
tmcli.NewCompletionCmd(rootCmd, true),
debug.Cmd(),
debugCmd,
)

server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, exportAppState, addStartFlags)
Expand All @@ -202,8 +208,6 @@ func NewRootCmd() (*cobra.Command, app.EncodingConfig) {
queryCommand(),
txCommand(),
keys.Commands(app.DefaultNodeHome),
ShowHeightCommand(),
ConvertPrefixCommand(),
)

return rootCmd, encodingConfig
Expand Down

0 comments on commit 6928147

Please sign in to comment.