MCPcopy Create free account
hub / github.com/Sifchain/sifnode / GetQueryCmd

Function GetQueryCmd

x/margin/client/cli/query.go:15–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func GetQueryCmd() *cobra.Command {
16 cmd := &cobra.Command{
17 Use: types.ModuleName,
18 Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
19 DisableFlagParsing: true,
20 SuggestionsMinimumDistance: 2,
21 RunE: client.ValidateCmd,
22 }
23 cmd.AddCommand(
24 GetCmdQueryPositions(),
25 GetCmdQueryPositionsForAddress(),
26 GetCmdQueryPositionsForPool(),
27 GetCmdParams(),
28 GetCmdQueryStatus(),
29 GetCmdSQParams(),
30 GetCmdQueryWhitelist(),
31 GetCmdQueryIsWhitelist(),
32 )
33 return cmd
34}
35
36func GetCmdQueryPositionsForAddress() *cobra.Command {
37 cmd := &cobra.Command{

Callers 1

GetQueryCmdMethod · 0.92

Calls 8

GetCmdQueryPositionsFunction · 0.85
GetCmdQueryStatusFunction · 0.85
GetCmdSQParamsFunction · 0.85
GetCmdQueryWhitelistFunction · 0.85
GetCmdQueryIsWhitelistFunction · 0.85
GetCmdParamsFunction · 0.70

Tested by

no test coverage detected