summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2021-03-03 17:17:59 +0300
committerMichael Klishin <michael@clojurewerkz.org>2021-03-03 17:17:59 +0300
commit0d29cbb11637449b3ed8aa79b14e922c0d4d7c25 (patch)
treecf3020309569e68a9e73edc0b3ef2f91efaf4c77
parent5c829ff599f1e50292744d21935d66a395fa232e (diff)
downloadrabbitmq-server-git-0d29cbb11637449b3ed8aa79b14e922c0d4d7c25.tar.gz
-rw-r--r--deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/remote_shell_command.ex13
1 files changed, 5 insertions, 8 deletions
diff --git a/deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/remote_shell_command.ex b/deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/remote_shell_command.ex
index bd4a04d75c..d7e4363dec 100644
--- a/deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/remote_shell_command.ex
+++ b/deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/remote_shell_command.ex
@@ -6,13 +6,8 @@
defmodule RabbitMQ.CLI.Diagnostics.Commands.RemoteShellCommand do
@behaviour RabbitMQ.CLI.CommandBehaviour
- use RabbitMQ.CLI.DefaultOutput
-
- def merge_defaults(args, opts) do
- {args, opts}
- end
-
+ use RabbitMQ.CLI.Core.MergesNoDefaults
use RabbitMQ.CLI.Core.AcceptsNoPositionalArguments
def run([], %{node: node_name}) do
@@ -26,13 +21,15 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.RemoteShellCommand do
end
end
+ use RabbitMQ.CLI.DefaultOutput
+
def help_section(), do: :observability_and_health_checks
- def description(), do: "Starts a shell on the target node"
+ def description(), do: "Starts an interactive Erlang shell on the target node"
def usage, do: "remote_shell"
def banner(_, %{node: node_name}) do
- "Starting a shell on node #{node_name}... Press 'Ctrl+G' then 'q' to exit."
+ "Starting an interactive Erlang shell on node #{node_name}... Press 'Ctrl+G' then 'q' to exit."
end
end