()
| 13 | ) |
| 14 | |
| 15 | func 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 | |
| 36 | func GetCmdQueryPositionsForAddress() *cobra.Command { |
| 37 | cmd := &cobra.Command{ |
no test coverage detected