feat(client/v2): combine autocli and custom cmd within a module (#17088)

This commit is contained in:
Julien Robert
2023-07-25 21:11:17 +00:00
committed by GitHub
parent 974abde0c4
commit fa4d87ef7e
11 changed files with 150 additions and 90 deletions
+1 -2
View File
@@ -17,12 +17,11 @@ import (
// GetCustomQueryCmd returns the cli query commands for this module
// These commands do not rely on gRPC and cannot be autogenerated
// TODO(@julienrbrt) https://github.com/cosmos/cosmos-sdk/issues/16836
func GetCustomQueryCmd(ac address.Codec) *cobra.Command {
// Group gov queries under a subcommand
govQueryCmd := &cobra.Command{
Use: types.ModuleName,
Short: "Querying commands for the governance module",
Short: "Querying commands for the gov module",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,