Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI tools should have a command for showing the currently running/installed version. #10577

Closed
bdunn313 opened this issue May 13, 2021 · 4 comments
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Comments

@bdunn313
Copy link
Contributor

Is your enhancement request related to a problem? Please describe.
When using the pulsar suite of CLI tools, there is no way to find the currently installed version of the tool. If one exists, the mechanism is undocumented and doesn't follow CLI conventions of displaying the version with the -v short flag or --version flag.

Describe the solution you'd like
When running any of the pulsar CLI tools, passing in the flag -v or --version should show the current version of that tool.

Describe alternatives you've considered

  • Showing the version while running the help command would be helpful, but the convention is described above.
  • At a minimum, the version could be tracked in a README associated with the pulsar project or adjacent to the tool / in the bin directory, but this is not ideal.

Additional context
This is an important tool for debugging purposes. I was looking to record and file a separate issue, and I wanted to provide specific information about the version of pulsar-admin I was running, but I could not find a way to do so.

@bdunn313 bdunn313 added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label May 13, 2021
@linlinnn
Copy link
Contributor

Related PR-9975

@bdunn313
Copy link
Contributor Author

@linlinnn I tried to figure out if this was already tracked as an issue, but I didn't find this one! Should I close this as a duplicate?

@linlinnn
Copy link
Contributor

@bdunn313 We already have this feature in PR-9975 which will be released on 2.7.2.

@bdunn313
Copy link
Contributor Author

@bdunn313 We already have this feature in PR-9975 which will be released on 2.7.2.

Awesome! Since this is already tracked in a separate issue and PRed, I'll close this one! Thank you for clarifying for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

No branches or pull requests

2 participants