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

Add command to get information about single package #85

Open
swissspidy opened this issue Jul 31, 2018 · 4 comments
Open

Add command to get information about single package #85

swissspidy opened this issue Jul 31, 2018 · 4 comments

Comments

@swissspidy
Copy link
Member

As suggested in wp-cli/i18n-command#53 (comment), there could be a new wp package version command to get the version of a single command.

Perhaps this could also just be wp package get <package> [--fields=<fields>] so one can easily get any specific field for a package.

Ideally we abstract the code in such a way that a single package is able to get its own version using that way.

@schlessera
Copy link
Member

That is non-trivial. Inside of the code, the versions don't exist. We can only fetch and store them during the Composer build phase, which means adding something like https://github.com/Ocramius/PackageVersions

@schlessera
Copy link
Member

Once we force Composer v2+ as a dependency here, we can move forward with this, as the above mentioned PackageVersions package is now a direct part of Composer from v2 onwards.

@gilzow
Copy link

gilzow commented Mar 10, 2021

Once we force Composer v2+ as a dependency here

@schlessera any ETA on when this will be able to happen?

@schlessera
Copy link
Member

@gilzow Right now we allow for both v1 and v2 of Composer to be used, and the built Phar already defaults to v2.
It might be feasible to phase out v1 with WP-CLI v3, but we'll have to see at that point what the installation numbers are.

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

No branches or pull requests

3 participants