You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "Technoboy- (via GitHub)" <gi...@apache.org> on 2023/09/07 07:54:13 UTC
[GitHub] [pulsar] Technoboy- commented on a diff in pull request #21139: [improve][cli] Add current option in the Clusters list cmd
Technoboy- commented on code in PR #21139:
URL: https://github.com/apache/pulsar/pull/21139#discussion_r1318226788
##########
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdClusters.java:
##########
@@ -41,8 +42,18 @@ public class CmdClusters extends CmdBase {
@Parameters(commandDescription = "List the existing clusters")
private class List extends CliCommand {
+
+ @Parameter(names = { "-c", "--current" },
+ description = "Print the current cluster with (*)", required = false)
+ private boolean current = false;
+
void run() throws PulsarAdminException {
- print(getAdmin().clusters().getClusters());
+ java.util.List<String> clusters = getAdmin().clusters().getClusters();
Review Comment:
Ah, duplicated name with this Class. So need to add package prefix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org