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

Function showBotDetectionCmd

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

Source from the content-addressed store, hash-verified

100}
101
102func showBotDetectionCmd(cli *cli) *cobra.Command {
103 cmd := &cobra.Command{
104 Use: "show",
105 Args: cobra.NoArgs,
106 Short: "Show bot detection settings",
107 Long: "Display the current bot detection settings.",
108 Example: ` auth0 protection bot-detection show
109 auth0 ap bd show --json
110 auth0 ap bd show --json-compact`,
111 RunE: showBotDetectionCmdRun(cli),
112 }
113
114 cmd.Flags().BoolVar(&cli.json, "json", false, "Output in json format.")
115 cmd.Flags().BoolVar(&cli.jsonCompact, "json-compact", false, "Output in compact json format.")
116 cmd.MarkFlagsMutuallyExclusive("json", "json-compact")
117
118 return cmd
119}
120
121func updateBotDetectionCmd(cli *cli) *cobra.Command {
122 var inputs botDetectionInputs

Callers 1

botDetectionCmdFunction · 0.85

Calls 1

showBotDetectionCmdRunFunction · 0.85

Tested by

no test coverage detected