-
Notifications
You must be signed in to change notification settings - Fork 45
/
query.go
32 lines (28 loc) · 862 Bytes
/
query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
"github.com/desmos-labs/desmos/x/profiles/types"
)
// DONTCOVER
// Tests will use single commands and not the global query one
// GetQueryCmd returns the command allowing to perform queries
func GetQueryCmd() *cobra.Command {
profileQueryCmd := &cobra.Command{
Use: types.ModuleName,
Short: "Querying commands for the profiles module",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
profileQueryCmd.AddCommand(
GetCmdQueryProfile(),
GetCmdQueryDTagRequests(),
GetCmdQueryUserRelationships(),
GetCmdQueryUserBlocks(),
GetCmdQueryParams(),
GetCmdQueryUserChainLinks(),
GetCmdQueryUserApplicationsLinks(),
)
return profileQueryCmd
}