GetQueryCmd returns the cli query commands for this module
()
| 12 | |
| 13 | // GetQueryCmd returns the cli query commands for this module |
| 14 | func 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 | } |
no test coverage detected