Skip to content

Commit

Permalink
Merge pull request #114 from diggy/require-wp-cli-1-4-0
Browse files Browse the repository at this point in the history
require wp-cli 1.4.0
  • Loading branch information
diggy committed Nov 1, 2017
2 parents e990e0b + f71853c commit a95705d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Quick links: [Installation](#installation) | [Using](#using) | [Contributing](#c

## Installation

Installing this package requires WP-CLI v1.3.0 or greater. Update to the latest stable release with `wp cli update`.
Installing this package requires WP-CLI v1.4.0 or greater. Update to the latest stable release with `wp cli update`.
Once you've done so, you can install this package with `wp package install [email protected]:diggy/polylang-cli.git`.

## Using
Expand Down
4 changes: 2 additions & 2 deletions command.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
WP_CLI::error( sprintf( 'This WP-CLI package requires PHP version %s or higher.', '5.5' ) );
}

if ( version_compare( WP_CLI_VERSION, '1.3.0', '<' ) ) {
WP_CLI::error( sprintf( 'This WP-CLI package requires WP-CLI version %s or higher. Please visit %s', '1.3.0', 'https://wp-cli.org/#updating' ) );
if ( version_compare( WP_CLI_VERSION, '1.4.0', '<' ) ) {
WP_CLI::error( sprintf( 'This WP-CLI package requires WP-CLI version %s or higher. Please visit %s', '1.4.0', 'https://wp-cli.org/#updating' ) );
}

# api, cli
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"files": ["command.php"]
},
"require": {
"wp-cli/wp-cli": "~1.3.0"
"wp-cli/wp-cli": "~1.4.0"
},
"require-dev": {
"behat/behat": "~2.5"
Expand Down Expand Up @@ -91,7 +91,7 @@
"Development"
],
"installation": {
"body": "Installing this package requires WP-CLI v1.3.0 or greater. Update to the latest stable release with `wp cli update`. \nOnce you've done so, you can install this package with `wp package install [email protected]:diggy/polylang-cli.git`."
"body": "Installing this package requires WP-CLI v1.4.0 or greater. Update to the latest stable release with `wp cli update`. \nOnce you've done so, you can install this package with `wp package install [email protected]:diggy/polylang-cli.git`."
},
"development": {
"body": "### Behat Tests\nTo run the Behat tests for polylang-cli, `cd` into the package directory and run `$ ./vendor/bin/behat --expand` from the command line. To run a specific group of tests use the `tags` parameter; e.g.: `$ ./vendor/bin/behat --expand --tags @pll-lang`"
Expand Down
60 changes: 32 additions & 28 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a95705d

Please sign in to comment.