2022-08-25 16:51:14 -07:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
// "strings"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
|
|
// "github.com/cosmos/cosmos-sdk/client/flags"
|
|
|
|
// sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
|
2022-09-06 15:18:09 -07:00
|
|
|
"colinear/x/colinearcore/types"
|
2022-08-25 16:51:14 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetQueryCmd returns the cli query commands for this module
|
|
|
|
func GetQueryCmd(queryRoute string) *cobra.Command {
|
2022-09-05 16:03:12 -07:00
|
|
|
// Group colinear queries under a subcommand
|
2022-08-25 16:51:14 -07:00
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: types.ModuleName,
|
|
|
|
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
|
|
|
|
DisableFlagParsing: true,
|
|
|
|
SuggestionsMinimumDistance: 2,
|
|
|
|
RunE: client.ValidateCmd,
|
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(CmdQueryParams())
|
2022-08-25 18:49:35 -07:00
|
|
|
cmd.AddCommand(CmdShowNextAuction())
|
|
|
|
cmd.AddCommand(CmdListAuction())
|
|
|
|
cmd.AddCommand(CmdShowAuction())
|
2022-08-30 14:27:12 -07:00
|
|
|
cmd.AddCommand(CmdAuctionBids())
|
|
|
|
|
2022-09-07 13:25:57 -07:00
|
|
|
cmd.AddCommand(CmdShowLockedUsers())
|
2022-09-08 14:52:01 -07:00
|
|
|
cmd.AddCommand(CmdLockedFunds())
|
|
|
|
|
2022-08-25 16:51:14 -07:00
|
|
|
// this line is used by starport scaffolding # 1
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
}
|