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

[rush] Support --version cli flag #4949

Open
viceice opened this issue Sep 30, 2024 · 2 comments
Open

[rush] Support --version cli flag #4949

viceice opened this issue Sep 30, 2024 · 2 comments

Comments

@viceice
Copy link

viceice commented Sep 30, 2024

Summary

We're dynamically install tools for renovate and for simple test we call <tool> --version which works for most tools.
It would be nice if rush can support this too.
It should simply print the version and exit with zero code.

https://github.com/containerbase/base/blob/61fc48fbabe852b4a25a19890e72bab02fe5658c/src/cli/tools/node/utils.ts#L190

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.136.1
rushVersion from rush.json?
useWorkspaces from rush.json?
Operating system? Linux
Would you consider contributing a PR? Yes
Node.js version (node -v)? 20.17.0
@iclanton
Copy link
Member

Do you want to get the current version of Rush by running rush --version? Or do you want to get the currently installed version of a particular package?

@iclanton iclanton moved this from Needs triage to Waiting for Author in Bug Triage Sep 30, 2024
@viceice
Copy link
Author

viceice commented Oct 1, 2024

Do you want to get the current version of Rush by running rush --version? Or do you want to get the currently installed version of a particular package?

the rush cli version which is running. 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for Author
Development

No branches or pull requests

2 participants