core-command
core-command copied to clipboard
Support beta/rc releases
Fixes #17.
It would be nice (although not urgent) if we could pick this up again.
I think if beta or rc is passed, we can fetch the latest offerings from https://api.wordpress.org/core/version-check/1.7/?channel=development to see if there's a matching release.
For that we need to update the WpOrgApi here to add a $channel arg:
https://github.com/wp-cli/wp-cli/blob/3ca317ad8b50ebaf9580373a383490a82b768f4a/php/WP_CLI/WpOrgApi.php#L129-L177
Then we can use that class here
If someone wants to take this over be my guest. See #17 for some more recent discussion and linked meta issues.