On 28/10/2019 11:49, Brian Candler wrote:
Many, many thanks for this - I will be compiling it shortly.
I see you already made a binary release of pulsarctl, so even better :-)
Comment 1: I find the CLI doesn't follow the Java pulsar-admin CLI.
# pulsar-admin version
$ apache-pulsar-2.4.1/bin/pulsar-admin topics subscriptions
persistent://public/default/my-topic
my-subscription
first-subscription
# pulsarctl version
$ ./pulsarctl subscriptions list persistent://public/default/my-topic
+--------------------+
| SUBSCRIPTIONS |
+--------------------+
| my-subscription |
| first-subscription |
+--------------------+
I now have a new set of commands to learn - although maybe I'll just
forget the Java ones going forward.
Comment 2: I can't see a way to disable the table formatting, e.g. to
get just the raw list of subscriptions in the example above. This would
be useful for simple scripting. An option to return all tables as csv
or tsv would be nice. (Ditto for clusters list, brokers list)
JSON would be another option, especially since some commands already
give JSON output (e.g. topic lookup, topic stats)
Comment 3: There is a newline missing after the command output here:
ubuntu@pulsar:~$ ./pulsarctl topic compact-status public/default/my-topic
Compacting the topic persistent://public/default/my-topic is not
runningubuntu@pulsar:~$
But this is a great start, thanks again!
Regards,
Brian.