package cli import ( "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/kava-labs/kava/x/liquid/types" ) // GetQueryCmd returns the cli query commands for this module func GetQueryCmd() *cobra.Command { liquidQueryCmd := &cobra.Command{ Use: types.ModuleName, Short: "Querying commands for the liquid module", DisableFlagParsing: true, SuggestionsMinimumDistance: 2, RunE: client.ValidateCmd, } cmds := []*cobra.Command{} for _, cmd := range cmds { flags.AddQueryFlagsToCmd(cmd) } liquidQueryCmd.AddCommand(cmds...) return liquidQueryCmd }