summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex
diff options
context:
space:
mode:
authorDaniil Fedotov <hairyhum@gmail.com>2019-02-08 15:33:17 -0500
committerDaniil Fedotov <hairyhum@gmail.com>2019-02-08 15:33:17 -0500
commitd6789e60f2aebc9f2e6b69e642c384ee85751fbd (patch)
tree4b357f86d90ce4b96d4d0d8b06400f4acfe98cc7 /deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex
parentb452733d73f6f0e7ecf887b4ccbf7298ff127122 (diff)
downloadrabbitmq-server-git-d6789e60f2aebc9f2e6b69e642c384ee85751fbd.tar.gz
A new way to display basic usage.
Do not show additional parameters info. List commands as names and descriptions. Group commands in sections. New behaviour callbacks: help_section/0 - atom name of a group to put command to. Default is :other description/0 - single line description of the command. Printed in the commands list Sections ans descriptions are WIP.
Diffstat (limited to 'deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex')
-rw-r--r--deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex
index 67a2a177e2..6cf160a1d1 100644
--- a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex
+++ b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/report_command.ex
@@ -89,6 +89,8 @@ defmodule RabbitMQ.CLI.Ctl.Commands.ReportCommand do
def usage, do: "report"
+ def help_section(), do: :report
+
def banner(_, %{node: node_name}), do: "Reporting server status of node #{node_name} ..."
#