(cli *cli)
| 149 | } |
| 150 | |
| 151 | func showBotDetectionCmdRun(cli *cli) func(cmd *cobra.Command, args []string) error { |
| 152 | return func(cmd *cobra.Command, args []string) error { |
| 153 | var bd *managementv2.GetBotDetectionSettingsResponseContent |
| 154 | err := ansi.Waiting(func() (err error) { |
| 155 | bd, err = cli.apiv2.AttackProtectionBotDetection.Get(cmd.Context()) |
| 156 | return err |
| 157 | }) |
| 158 | if err != nil { |
| 159 | return err |
| 160 | } |
| 161 | |
| 162 | cli.renderer.BotDetectionShow(bd) |
| 163 | |
| 164 | return nil |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | func updateBotDetectionCmdRun(cli *cli, inputs *botDetectionInputs) func(cmd *cobra.Command, args []string) error { |
| 169 | return func(cmd *cobra.Command, args []string) error { |
no test coverage detected