Skip to content

Conversation

@borkweb
Copy link

@borkweb borkweb commented Sep 14, 2022

The install subcommand for both plugins and themes now support the following:

  • wp [plugin|theme] install whatever.zip --adapt-slug=bork - When installing a zip (whether remote or local), the directory it gets installed to will be the value in adapt-slug; in this case, bork/'
  • wp [plugin|theme] install whatever.zip --adapt-slug - When installing a zip (whether remote or local), the plugin or theme name will be fetched from the bootstrap file or style.css respectively, slug-ify it, and then use that as the directory it gets installed to.

Fixes: #74

thrijith and others added 30 commits March 21, 2019 18:54
…tion

Handle extension activation for WP error or extension not found
…-alert

Display warning in plugin list info if plugin version is higher than expected
Move PHP 5.4 tests from `WP_VERSION` `latest` to `5.1`
Fix the wp-cli#166 bug:
the "wp theme search" command has not the "page" option
Enhancement: Add PHP 7.3 to Travis CI build matrix
Update .distignore and .gitignore with phpcs/phpunit config files
Update wp-cli-tests to 2.1
src/WP_CLI/DestructivePluginUpgrader.php
src/WP_CLI/DestructiveThemeUpgrader.php
Update ruleset to exclude UselessOverridingMethod sniff
Update array syntax for changed lines
Implement CS checking based on the `WP_CLI_CS` ruleset
alexstine and others added 23 commits May 12, 2022 15:35
…staller

Add `"johnpbloch/wordpress-core-installer": true` to `composer.json`
Co-authored-by: Pascal Birchler <[email protected]>
Add optional `--exclude=<name>` argument for multiple plugin commands
…ing zips

The `install` subcommand for both plugins and themes now support the following:

* `wp [plugin|theme] install whatever.zip --adapt-slug=bork` - When installing a zip (whether remote or local), the directory it gets installed to will be the value in `adapt-slug`; in this case, `bork/`'
* `wp [plugin|theme] install whatever.zip --adapt-slug` - When installing a zip (whether remote or local), the plugin or theme name will be fetched from the bootstrap file or style.css respectively, slug-ify it, and then use that as the directory it gets installed to.
@borkweb borkweb requested a review from a team as a code owner September 14, 2022 02:07
@danielbachhuber
Copy link
Member

@borkweb Looks pretty great so far! I kicked off the test suite to see if there are any side effects.

What do you think should happen for wp [plugin|theme] install whatever.zip whatever2.zip --adapt-slug=bork? Should we throw an error?

@borkweb
Copy link
Author

borkweb commented Sep 20, 2022

@danielbachhuber - Oh! I that's a great question. Erroring makes a lot of sense.

@danielbachhuber
Copy link
Member

@borkweb Sounds good. Can you add a test case for that scenario? It looks like there's a coding standards issue that needs to be fixed too.

@danielbachhuber
Copy link
Member

Proceeding with wp-cli/wp-cli#5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/6d013dbff6c939165c4c03c34b6477a1 in case this PR is auto-closed or broken in some way.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow theme slug renaming