-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add ability to retrieve plain version from PHAR #92
Comments
Hey. I'm not sure it's worth adding code for that, it's so simple in Bash:
Edit: the |
Hey Brian! Appreciate the input. That assumes the context and circumstance. Is there a downside to having this? You mention Symfony, just a couple methods up from that code is the ability to get just the version in Symfony. There are different use cases for just getting the version versus getting a human-readable version. |
Our team uses the PHAR version to run Strauss to avoid dependency issues. When our build system goes to run Strauss, it checks of the PHAR is available locally, and then downloads it if not before running it. The risk, here, is that devs may have an old downloaded version. To get around this, we make a file that stores the downloaded version.
There's currently a
--version
flag that can be used, but it outputs something like:It would be helpful to have a
--plain-version
(or equivalent) flag that strictly outputs the version so we can easily do a version check:The text was updated successfully, but these errors were encountered: