This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new fc3417f Hide namespace cli commands that are no longer relevant
(#1645)
fc3417f is described below
commit fc3417fc3b48fc43184eaff06dcab772d8ede554
Author: Sanjeev Kulkarni <[email protected]>
AuthorDate: Wed Apr 25 22:40:22 2018 -0700
Hide namespace cli commands that are no longer relevant (#1645)
---
.../java/org/apache/pulsar/admin/cli/CmdNamespaces.java | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
index d40db50..5259879 100644
---
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
+++
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
@@ -56,7 +56,7 @@ public class CmdNamespaces extends CmdBase {
}
}
- @Parameters(commandDescription = "Get the namespaces for a tenant in a
cluster")
+ @Parameters(commandDescription = "Get the namespaces for a tenant in a
cluster", hidden = true)
private class GetNamespacesPerCluster extends CliCommand {
@Parameter(description = "tenant/cluster\n", required = true)
private java.util.List<String> params;
@@ -80,6 +80,18 @@ public class CmdNamespaces extends CmdBase {
}
}
+ @Parameters(commandDescription = "Get the list of destinations for a
namespace", hidden = true)
+ private class GetDestinations extends CliCommand {
+ @Parameter(description = "tenant/namespace\n", required = true)
+ private java.util.List<String> params;
+
+ @Override
+ void run() throws PulsarAdminException {
+ String namespace = validateNamespace(params);
+ print(admin.namespaces().getTopics(namespace));
+ }
+ }
+
@Parameters(commandDescription = "Get the configuration policies of a
namspace")
private class GetPolicies extends CliCommand {
@Parameter(description = "tenant/namespace\n", required = true)
@@ -809,7 +821,8 @@ public class CmdNamespaces extends CmdBase {
jcommander.addCommand("list", new GetNamespacesPerProperty());
jcommander.addCommand("list-cluster", new GetNamespacesPerCluster());
- jcommander.addCommand("topics", new GetTopics(), "destinations");
+ jcommander.addCommand("topics", new GetTopics());
+ jcommander.addCommand("destinations", new GetDestinations());
jcommander.addCommand("policies", new GetPolicies());
jcommander.addCommand("create", new Create());
jcommander.addCommand("delete", new Delete());
--
To stop receiving notification emails like this one, please contact
[email protected].