wp-cli/wp-cli — pull request #136 by getsource (2012-07-02 21:02:41+00:00)
Title: Core Update from Local Source.  See #135

This is a first pass for Core Update from a local upgrade package.

Updates using local packages with the syntax:
`wp core update --version=3.4 ../mypackage.zip`

To make the operation as close to how WordPress handles upgrades itself, this passes `Core_Upgrader` an API Response with the version and package that are specified.

Version is required since the API Response is crafted based on whether an upgrade is available.

Known issue:
As core does, removes the package after the update is complete. While this isn't inherently bad, I'd guess that most users would assume that the package will remain after the update is complete. If you agree, planning on adding a new `WP_Upgrader` so that we can override `unpack_package()` to avoid the deletion.