mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
32 lines
713 B
Go
32 lines
713 B
Go
|
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
|
||
|
}
|