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

Function GetQueryCmd

x/contract/client/cli/query.go:14–32  ·  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 contract 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(CmdIsContractOwner())
25 cmd.AddCommand(CmdListContractFile())
26 cmd.AddCommand(CmdShowContractFile())
27 cmd.AddCommand(CmdListContractLog())
28 cmd.AddCommand(CmdShowContractLog())
29 cmd.AddCommand(CmdContractListFromHash())
30
31 return cmd
32}

Callers 1

GetQueryCmdMethod · 0.92

Calls 6

CmdIsContractOwnerFunction · 0.85
CmdListContractFileFunction · 0.85
CmdShowContractFileFunction · 0.85
CmdListContractLogFunction · 0.85
CmdShowContractLogFunction · 0.85
CmdContractListFromHashFunction · 0.85

Tested by

no test coverage detected