parent
ce02538e58
commit
bd3b44aab9
|
@ -26,10 +26,18 @@ defmodule RabbitMQCtl do
|
||||||
|
|
||||||
@spec main(list()) :: no_return()
|
@spec main(list()) :: no_return()
|
||||||
def main(["--auto-complete" | []]) do
|
def main(["--auto-complete" | []]) do
|
||||||
|
# silence Erlang/OTP's standard library warnings, it's acceptable for CLI tools,
|
||||||
|
# see rabbitmq/rabbitmq-server#8912
|
||||||
|
:logger.set_primary_config(:level, :error)
|
||||||
|
|
||||||
handle_shutdown(:ok)
|
handle_shutdown(:ok)
|
||||||
end
|
end
|
||||||
|
|
||||||
def main(unparsed_command) do
|
def main(unparsed_command) do
|
||||||
|
# silence Erlang/OTP's standard library warnings, it's acceptable for CLI tools,
|
||||||
|
# see rabbitmq/rabbitmq-server#8912
|
||||||
|
:logger.set_primary_config(:level, :error)
|
||||||
|
|
||||||
exec_command(unparsed_command, &process_output/3)
|
exec_command(unparsed_command, &process_output/3)
|
||||||
|> handle_shutdown
|
|> handle_shutdown
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue