MCPcopy Create free account
hub / github.com/auth0/auth0-cli / showBotDetectionCmdRun

Function showBotDetectionCmdRun

internal/cli/attack_protection_bot_detection.go:151–166  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

149}
150
151func 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
168func updateBotDetectionCmdRun(cli *cli, inputs *botDetectionInputs) func(cmd *cobra.Command, args []string) error {
169 return func(cmd *cobra.Command, args []string) error {

Callers 1

showBotDetectionCmdFunction · 0.85

Calls 3

WaitingFunction · 0.92
GetMethod · 0.80
BotDetectionShowMethod · 0.80

Tested by

no test coverage detected