diff --git a/docs/auth0_actions_delete.md b/docs/auth0_actions_delete.md index c7c9b2d49..753b2a538 100644 --- a/docs/auth0_actions_delete.md +++ b/docs/auth0_actions_delete.md @@ -23,6 +23,8 @@ auth0 actions delete [flags] auth0 actions rm auth0 actions delete auth0 actions delete --force + auth0 actions delete + auth0 actions delete --force ``` diff --git a/docs/auth0_apis_delete.md b/docs/auth0_apis_delete.md index 15df2480a..4777fb789 100644 --- a/docs/auth0_apis_delete.md +++ b/docs/auth0_apis_delete.md @@ -23,6 +23,8 @@ auth0 apis delete [flags] auth0 apis rm auth0 apis delete auth0 apis delete --force + auth0 apis delete + auth0 apis delete --force ``` diff --git a/docs/auth0_apps_delete.md b/docs/auth0_apps_delete.md index 3fe06b0ca..ba4058335 100644 --- a/docs/auth0_apps_delete.md +++ b/docs/auth0_apps_delete.md @@ -23,6 +23,8 @@ auth0 apps delete [flags] auth0 apps rm auth0 apps delete auth0 apps delete --force + auth0 apps delete + auth0 apps delete --force ``` diff --git a/docs/auth0_domains_delete.md b/docs/auth0_domains_delete.md index 13af4235b..3c9af2cb0 100644 --- a/docs/auth0_domains_delete.md +++ b/docs/auth0_domains_delete.md @@ -23,6 +23,8 @@ auth0 domains delete [flags] auth0 domains rm auth0 domains delete auth0 domains delete --force + auth0 domains delete + auth0 domains delete --force ``` diff --git a/docs/auth0_logs_streams_delete.md b/docs/auth0_logs_streams_delete.md index 9e680b7bc..55e74fba2 100644 --- a/docs/auth0_logs_streams_delete.md +++ b/docs/auth0_logs_streams_delete.md @@ -23,6 +23,8 @@ auth0 logs streams delete [flags] auth0 logs streams rm auth0 logs streams delete auth0 logs streams delete --force + auth0 logs streams delete + auth0 logs streams delete --force ``` diff --git a/docs/auth0_orgs_delete.md b/docs/auth0_orgs_delete.md index c65758374..547fd1004 100644 --- a/docs/auth0_orgs_delete.md +++ b/docs/auth0_orgs_delete.md @@ -23,6 +23,8 @@ auth0 orgs delete [flags] auth0 orgs rm auth0 orgs delete auth0 orgs delete --force + auth0 orgs delete + auth0 orgs delete --force ``` diff --git a/docs/auth0_roles_delete.md b/docs/auth0_roles_delete.md index e85284a9b..915279be8 100644 --- a/docs/auth0_roles_delete.md +++ b/docs/auth0_roles_delete.md @@ -23,6 +23,8 @@ auth0 roles delete [flags] auth0 roles rm auth0 roles delete auth0 roles delete --force + auth0 roles delete + auth0 roles delete --force ``` diff --git a/docs/auth0_rules_delete.md b/docs/auth0_rules_delete.md index f8bd8794a..cb72e58a0 100644 --- a/docs/auth0_rules_delete.md +++ b/docs/auth0_rules_delete.md @@ -25,6 +25,8 @@ auth0 rules delete [flags] auth0 rules rm auth0 rules delete auth0 rules delete --force + auth0 rules delete + auth0 rules delete --force ``` diff --git a/docs/auth0_users_blocks_unblock.md b/docs/auth0_users_blocks_unblock.md index c0d8d2201..f84002051 100644 --- a/docs/auth0_users_blocks_unblock.md +++ b/docs/auth0_users_blocks_unblock.md @@ -15,7 +15,9 @@ auth0 users blocks unblock [flags] ## Examples ``` + auth0 users blocks unblock auth0 users blocks unblock + auth0 users blocks unblock ``` diff --git a/docs/auth0_users_delete.md b/docs/auth0_users_delete.md index 9609609cd..aae614965 100644 --- a/docs/auth0_users_delete.md +++ b/docs/auth0_users_delete.md @@ -23,6 +23,8 @@ auth0 users delete [flags] auth0 users rm auth0 users delete auth0 users delete --force + auth0 users delete + auth0 users delete --force ``` diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 12994ded4..32e80e467 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -369,7 +369,9 @@ func deleteActionCmd(cli *cli) *cobra.Command { Example: ` auth0 actions delete auth0 actions rm auth0 actions delete - auth0 actions delete --force`, + auth0 actions delete --force + auth0 actions delete + auth0 actions delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/apis.go b/internal/cli/apis.go index 3fd96a1da..8cc48d71d 100644 --- a/internal/cli/apis.go +++ b/internal/cli/apis.go @@ -427,7 +427,9 @@ func deleteAPICmd(cli *cli) *cobra.Command { Example: ` auth0 apis delete auth0 apis rm auth0 apis delete - auth0 apis delete --force`, + auth0 apis delete --force + auth0 apis delete + auth0 apis delete --force`, RunE: func(cmd *cobra.Command, args []string) error { var ids []string if len(args) == 0 { diff --git a/internal/cli/apps.go b/internal/cli/apps.go index d39bd5e9e..caddc4a3d 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -315,7 +315,9 @@ func deleteAppCmd(cli *cli) *cobra.Command { Example: ` auth0 apps delete auth0 apps rm auth0 apps delete - auth0 apps delete --force`, + auth0 apps delete --force + auth0 apps delete + auth0 apps delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/custom_domains.go b/internal/cli/custom_domains.go index d5e348e0c..a7fde2e44 100644 --- a/internal/cli/custom_domains.go +++ b/internal/cli/custom_domains.go @@ -336,7 +336,9 @@ func deleteCustomDomainCmd(cli *cli) *cobra.Command { Example: ` auth0 domains delete auth0 domains rm auth0 domains delete - auth0 domains delete --force`, + auth0 domains delete --force + auth0 domains delete + auth0 domains delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/log_streams.go b/internal/cli/log_streams.go index 6d4a497e1..b1f5a987e 100644 --- a/internal/cli/log_streams.go +++ b/internal/cli/log_streams.go @@ -180,7 +180,9 @@ func deleteLogStreamCmd(cli *cli) *cobra.Command { Example: ` auth0 logs streams delete auth0 logs streams rm auth0 logs streams delete - auth0 logs streams delete --force`, + auth0 logs streams delete --force + auth0 logs streams delete + auth0 logs streams delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/organizations.go b/internal/cli/organizations.go index 71795c99c..97ec7884b 100644 --- a/internal/cli/organizations.go +++ b/internal/cli/organizations.go @@ -420,7 +420,9 @@ func deleteOrganizationCmd(cli *cli) *cobra.Command { Example: ` auth0 orgs delete auth0 orgs rm auth0 orgs delete - auth0 orgs delete --force`, + auth0 orgs delete --force + auth0 orgs delete + auth0 orgs delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/picker_options_test.go b/internal/cli/picker_options_test.go index 2ad163e45..01c200196 100644 --- a/internal/cli/picker_options_test.go +++ b/internal/cli/picker_options_test.go @@ -50,7 +50,7 @@ func TestPickerOptions(t *testing.T) { t.Run("return the values for a given set of labels", func(t *testing.T) { options := pickerOptions{pickerOption{label: "Foo", value: "0"}, pickerOption{label: "Bar", value: "1"}, pickerOption{label: "Baz", value: "2"}} want := []string{"0", "2"} - got := options.getValues("Foo", "Fizz") + got := options.getValues("Foo", "Baz") assert.Equal(t, want, got) }) diff --git a/internal/cli/roles.go b/internal/cli/roles.go index c4789a6ef..ee1a64c85 100644 --- a/internal/cli/roles.go +++ b/internal/cli/roles.go @@ -293,7 +293,9 @@ func deleteRoleCmd(cli *cli) *cobra.Command { Example: ` auth0 roles delete auth0 roles rm auth0 roles delete - auth0 roles delete --force`, + auth0 roles delete --force + auth0 roles delete + auth0 roles delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/rules.go b/internal/cli/rules.go index a357416be..9c7f0c97c 100644 --- a/internal/cli/rules.go +++ b/internal/cli/rules.go @@ -260,7 +260,9 @@ func deleteRuleCmd(cli *cli) *cobra.Command { Example: ` auth0 rules delete auth0 rules rm auth0 rules delete - auth0 rules delete --force`, + auth0 rules delete --force + auth0 rules delete + auth0 rules delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/users.go b/internal/cli/users.go index 9d95e6831..d129186fb 100644 --- a/internal/cli/users.go +++ b/internal/cli/users.go @@ -368,7 +368,9 @@ func deleteUserCmd(cli *cli) *cobra.Command { Example: ` auth0 users delete auth0 users rm auth0 users delete - auth0 users delete --force`, + auth0 users delete --force + auth0 users delete + auth0 users delete --force`, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 { diff --git a/internal/cli/users_blocks.go b/internal/cli/users_blocks.go index 8eb75a83f..c23cd0fbb 100644 --- a/internal/cli/users_blocks.go +++ b/internal/cli/users_blocks.go @@ -66,11 +66,13 @@ func listUserBlocksCmd(cli *cli) *cobra.Command { func deleteUserBlocksCmd(cli *cli) *cobra.Command { cmd := &cobra.Command{ - Use: "unblock", - Args: cobra.MinimumNArgs(0), - Short: "Remove brute-force protection blocks for a given user", - Long: "Remove brute-force protection blocks for a given user.", - Example: ` auth0 users blocks unblock `, + Use: "unblock", + Args: cobra.MinimumNArgs(0), + Short: "Remove brute-force protection blocks for a given user", + Long: "Remove brute-force protection blocks for a given user.", + Example: ` auth0 users blocks unblock + auth0 users blocks unblock + auth0 users blocks unblock `, RunE: func(cmd *cobra.Command, args []string) error { ids := make([]string, len(args)) if len(args) == 0 {