Skip to content

Commit e94e296

Browse files
committed
rename cli command to rabbitmq-queues member_with_highest_index <queue>
1 parent 2d0f9a6 commit e94e296

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55
## Copyright (c) 2007-2025 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
66

7-
defmodule RabbitMQ.CLI.Queues.Commands.PickMemberWithHighestIndexCommand do
7+
defmodule RabbitMQ.CLI.Queues.Commands.MemberWithHighestIndexCommand do
88
alias RabbitMQ.CLI.Core.DocGuide
99
import RabbitMQ.CLI.Core.DataCoercion
1010

@@ -42,7 +42,7 @@ defmodule RabbitMQ.CLI.Queues.Commands.PickMemberWithHighestIndexCommand do
4242

4343
def formatter(), do: RabbitMQ.CLI.Formatters.PrettyTable
4444

45-
def usage, do: "pick_member_with_highest_index <queue> [--vhost <vhost>] [--index <commit|commit_index|log|log_index|snapshot|snapshot_index>]"
45+
def usage, do: "member_with_highest_index <queue> [--vhost <vhost>] [--index <commit|commit_index|log|log_index|snapshot|snapshot_index>]"
4646

4747
def usage_additional do
4848
[
@@ -59,7 +59,7 @@ defmodule RabbitMQ.CLI.Queues.Commands.PickMemberWithHighestIndexCommand do
5959

6060
def help_section, do: :replication
6161

62-
def description, do: "Look up the member of a quorum queue with the highest commit, log or snapshot index."
62+
def description, do: "Look up first member of a quorum queue with the highest commit, log or snapshot index."
6363

6464
def banner([name], %{node: node, index: index, vhost: vhost}) do
6565
index = format_index(String.downcase(index))

deps/rabbitmq_cli/test/queues/pick_member_with_highest_index_test.exs renamed to deps/rabbitmq_cli/test/queues/member_with_highest_index_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
##
55
## Copyright (c) 2007-2025 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
66

7-
defmodule RabbitMQ.CLI.Queues.Commands.PickMemberWithHighestIndexCommandTest do
7+
defmodule RabbitMQ.CLI.Queues.Commands.MemberWithHighestIndexCommandTest do
88
use ExUnit.Case, async: false
99
import TestHelper
1010

11-
@command RabbitMQ.CLI.Queues.Commands.PickMemberWithHighestIndexCommand
11+
@command RabbitMQ.CLI.Queues.Commands.MemberWithHighestIndexCommand
1212

1313
setup_all do
1414
RabbitMQ.CLI.Core.Distribution.start()

0 commit comments

Comments
 (0)