0g-chain/x/liquid/client/cli/query.go
2024-07-30 21:46:39 +08:00

32 lines
714 B
Go

package cli
import (
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/0glabs/0g-chain/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
}