Skip to content

Commit b34eeda

Browse files
Abstract wp import to a separate wp-cli/import-command package
1 parent a830543 commit b34eeda

File tree

5 files changed

+56
-673
lines changed

5 files changed

+56
-673
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"symfony/translation": "~2.7",
3333
"nb/oxymel": "~0.1.0",
3434
"composer/composer": "^1.2.0",
35-
"wp-cli/cron-command": "^1.0"
35+
"wp-cli/cron-command": "^1.0",
36+
"wp-cli/import-command": "^1.0"
3637
},
3738
"require-dev": {
3839
"phpunit/phpunit": "3.7.*",

composer.lock

Lines changed: 48 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features/command.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Feature: WP-CLI Commands
1111
or: wp cron test
1212
"""
1313

14+
When I run `wp import --help`
15+
Then STDOUT should contain:
16+
"""
17+
wp import <file>... --authors=<authors>
18+
"""
19+
1420
Scenario: Invalid class is specified for a command
1521
Given an empty directory
1622
And a custom-cmd.php file:

features/import.feature

Lines changed: 0 additions & 250 deletions
This file was deleted.

0 commit comments

Comments
 (0)