(cli *cli)
| 100 | } |
| 101 | |
| 102 | func 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 | |
| 121 | func updateBotDetectionCmd(cli *cli) *cobra.Command { |
| 122 | var inputs botDetectionInputs |
no test coverage detected