(cli *cli)
| 11 | ) |
| 12 | |
| 13 | func userBlocksCmd(cli *cli) *cobra.Command { |
| 14 | cmd := &cobra.Command{ |
| 15 | Use: "blocks", |
| 16 | Short: "Manage brute-force protection user blocks", |
| 17 | Long: "Manage brute-force protection user blocks.", |
| 18 | } |
| 19 | |
| 20 | cmd.SetUsageTemplate(resourceUsageTemplate()) |
| 21 | cmd.AddCommand(listUserBlocksCmd(cli)) |
| 22 | cmd.AddCommand(deleteUserBlocksCmd(cli)) |
| 23 | |
| 24 | return cmd |
| 25 | } |
| 26 | |
| 27 | func listUserBlocksCmd(cli *cli) *cobra.Command { |
| 28 | var inputs struct { |
no test coverage detected