Reuse --silent and --quiet in #10865
This commit is contained in:
parent
6531bb45b9
commit
c0187ec155
|
@ -7,7 +7,7 @@
|
|||
defmodule RabbitMQ.CLI.Plugins.Commands.ListCommand do
|
||||
import RabbitCommon.Records
|
||||
|
||||
alias RabbitMQ.CLI.Core.{DocGuide, Validators}
|
||||
alias RabbitMQ.CLI.Core.{Config, DocGuide, Validators}
|
||||
alias RabbitMQ.CLI.Plugins.Helpers, as: PluginHelpers
|
||||
import RabbitMQ.CLI.Core.{CodePath, Paths}
|
||||
|
||||
|
@ -61,8 +61,14 @@ defmodule RabbitMQ.CLI.Plugins.Commands.ListCommand do
|
|||
:ok
|
||||
|
||||
false ->
|
||||
names = Enum.join(Enum.to_list(missing), ", ")
|
||||
IO.puts("WARNING - plugins currently enabled but missing: #{names}\n")
|
||||
case Config.output_less?(opts) do
|
||||
false ->
|
||||
names = Enum.join(Enum.to_list(missing), ", ")
|
||||
IO.puts("WARNING - plugins currently enabled but missing: #{names}\n")
|
||||
|
||||
true ->
|
||||
:ok
|
||||
end
|
||||
end
|
||||
|
||||
implicit = :rabbit_plugins.dependencies(false, enabled, all)
|
||||
|
@ -172,8 +178,8 @@ defmodule RabbitMQ.CLI.Plugins.Commands.ListCommand do
|
|||
|
||||
%{
|
||||
name: name,
|
||||
version: version,
|
||||
running_version: running[name],
|
||||
version: to_string(version),
|
||||
running_version: to_string(running[name]),
|
||||
enabled: enabled_mode,
|
||||
running: Keyword.has_key?(running, name)
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ defmodule ListPluginsCommandTest do
|
|||
{:ok, [enabled_plugins]} = :file.consult(plugins_file)
|
||||
|
||||
IO.puts(
|
||||
"plugins list tests will assume tnat #{Enum.join(enabled_plugins, ",")} is the list of enabled plugins to revert to"
|
||||
"plugins list tests will assume that #{Enum.join(enabled_plugins, ",")} is the list of enabled plugins to revert to"
|
||||
)
|
||||
|
||||
opts = %{
|
||||
|
|
Loading…
Reference in New Issue