Sync conversations from Slack. Lari Hotari: After this PR is completed, I will add the automatic completion feature. sounds great. Just wondering if there's an overlap with pulsar-shell. Is there a way to unite pulsar-admin and pulsar-shell in the future? Would that make sense? /cc @Nicoló Boschi @Enrico Olivelli
Zixuan Liu: This feature has different implementations between pulsar-admin/client and pulsar-shell. pulsar-admin and pulsar-client uses the completion script, which will be installed to you shell(bash, zsh), please https://picocli.info/autocomplete.html pulsar-shell depends on the jline3. Enrico Olivelli: Pulsar Shell is a wrapper for Pulsar admin and Pulsar client It is not a distict codebase. Nicoló Boschi: In general pulsar shell should be used as a replacement for pulsar admin because it brings many improvements such as config management, performance, auto completion, client commands Lari Hotari: It just feels that it would be good to consider pulsar-shell in PIP-343 too so that things work seamlessly also after making the improvements. > In general pulsar shell should be used as a replacement for pulsar admin because it brings many improvements such as config management, performance, auto completion, client commands yes. just one thought: a common use case is to run a set of commands with pulsar-admin in a shell script. this is very inefficient with pulsar-admin since for each call everything is started, connections created etc. and then stopped. Does pulsar-shell support non-interactive usage where you'd pass a list of commands and somehow also do scripting? There might be a need for conditionals in error handling so it might be hard to handle? Nicoló Boschi: Yes it does https://pulsar.apache.org/docs/next/administration-pulsar-shell/#run-commands-sequentially Thanks, Zixuan Zixuan Liu <node...@gmail.com> 于2024年3月4日周一 01:05写道: > Hello, > > A new proposal to improve the CLI user experience. > > PIP: https://github.com/apache/pulsar/pull/22181 > > Thanks, > Zixuan >