(cli *cli)
| 16 | ) |
| 17 | |
| 18 | func ipsCmd(cli *cli) *cobra.Command { |
| 19 | cmd := &cobra.Command{ |
| 20 | Use: "ips", |
| 21 | Short: "Manage blocked IP addresses", |
| 22 | Long: "Manually block or unblock an IP address that was blocked via the Suspicious IP Throttling " + |
| 23 | "due to multiple suspicious attempts.", |
| 24 | } |
| 25 | |
| 26 | cmd.SetUsageTemplate(resourceUsageTemplate()) |
| 27 | cmd.AddCommand(checkIPCmd(cli)) |
| 28 | cmd.AddCommand(unblockIPCmd(cli)) |
| 29 | |
| 30 | return cmd |
| 31 | } |
| 32 | |
| 33 | func checkIPCmd(cli *cli) *cobra.Command { |
| 34 | var inputs struct { |
no test coverage detected