You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{:error,RabbitMQ.CLI.Core.ExitCodes.exit_usage(),"`--experimental` flag is not allowed when enabling all feature flags.\nUse --experimental with a specific feature flag if you want to enable an experimental feature."}
{:error,RabbitMQ.CLI.Core.ExitCodes.exit_usage(),"Feature flag #{feature_flag} is experimental. If you understand the risk, use --experimental to enable it."}
@@ -67,8 +74,8 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EnableFeatureFlagCommand do
67
74
"name of the feature flag to enable, or \"all\" to enable all supported flags"
68
75
],
69
76
[
70
-
"--experimental",
71
-
"required to enable experimental feature flags (make sure you understand the risks!)"
77
+
"--opt-in",
78
+
"required to enable certain feature flags (those with vast scope or maturing)"
72
79
]
73
80
]
74
81
end
@@ -81,4 +88,39 @@ defmodule RabbitMQ.CLI.Ctl.Commands.EnableFeatureFlagCommand do
81
88
defbanner(["all"],_),do: "Enabling all feature flags ..."
82
89
83
90
defbanner([feature_flag],_),do: "Enabling feature flag \"#{feature_flag}\" ..."
91
+
92
+
#
93
+
# Implementation
94
+
#
95
+
96
+
defpenable_all(node_name,has_opted_in)do
97
+
casehas_opted_indo
98
+
true->
99
+
msg="`--opt-in` (aliased as `--experimental`) flag is not allowed when enabling all feature flags.\nUse --opt-in with a specific feature flag name if to enable an opt-in flag"
0 commit comments