nodece opened a new pull request, #22557: URL: https://github.com/apache/pulsar/pull/22557
### Motivation The tab-completion is a important feature, we migrate the CLI parser to picocli from jcommander, right now we can use the picocli autocomplete to do that. - pulsar-admin ``` ❯ source <(bin/pulsar-admin generate-completion) ❯ bin/pulsar-admin topics clear-backlog --subscription --help --subscription --version -h -s -v ``` - pulsar-client ``` ❯ source <(bin/pulsar-client generate-completion) ❯ bin/pulsar-client produce -h --chunking --files --key-value-key --rate -db -h -kvkf -s --disable-batching --help --key-value-key-file --separator -dr -k -m -v --disable-replication --key --messages --value-schema -ekn -ks -n -vs --encryption-key-name --key-schema --num-produce --version -ekv -kvet -p --encryption-key-value --key-value-encoding-type --properties -c -f -kvk -r ``` ### Modifications - Add `generate-completion` command to the `pulsar-admin` and `pulsar-client` ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- 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-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org