MCPcopy Create free account
hub / github.com/FirmaChain/firmachain / GetQueryCmd

Function GetQueryCmd

x/token/client/cli/query.go:14–29  ·  view source on GitHub ↗

GetQueryCmd returns the cli query commands for this module

()

Source from the content-addressed store, hash-verified

12
13// GetQueryCmd returns the cli query commands for this module
14func GetQueryCmd() *cobra.Command {
15 // Group token queries under a subcommand
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
24 cmd.AddCommand(CmdListTokenData())
25 cmd.AddCommand(CmdShowTokenData())
26 cmd.AddCommand(CmdGetTokenList())
27
28 return cmd
29}

Callers 1

GetQueryCmdMethod · 0.92

Calls 3

CmdListTokenDataFunction · 0.85
CmdShowTokenDataFunction · 0.85
CmdGetTokenListFunction · 0.85

Tested by

no test coverage detected