Skip to content

Commit 09dee0d

Browse files
Merge pull request #3887 from wp-cli/3728-export-command
Abstract `wp export` to wp-cli/export-command
2 parents ae32904 + 9b82b17 commit 09dee0d

File tree

12 files changed

+60
-1886
lines changed

12 files changed

+60
-1886
lines changed

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"symfony/event-dispatcher": "~2.7",
3131
"symfony/process": "~2.1",
3232
"symfony/translation": "~2.7",
33-
"nb/oxymel": "~0.1.0",
3433
"composer/composer": "^1.2.0",
3534
"wp-cli/cron-command": "^1.0",
3635
"wp-cli/import-command": "^1.0",
3736
"wp-cli/db-command": "^1.0",
38-
"wp-cli/media-command": "^1.0"
37+
"wp-cli/media-command": "^1.0",
38+
"wp-cli/export-command": "^1.0"
3939
},
4040
"require-dev": {
4141
"phpunit/phpunit": "3.7.*",
@@ -46,7 +46,6 @@
4646
"psy/psysh": "Enhanced `wp shell` functionality"
4747
},
4848
"autoload": {
49-
"psr-0": { "WP_CLI": "php" },
50-
"classmap": [ "php/export" ]
49+
"psr-0": { "WP_CLI": "php" }
5150
}
5251
}

composer.lock

Lines changed: 50 additions & 42 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
@@ -17,6 +17,12 @@ Feature: WP-CLI Commands
1717
or: wp db cli
1818
"""
1919

20+
When I run `wp export --help`
21+
Then STDOUT should contain:
22+
"""
23+
wp export [--dir=<dirname>]
24+
"""
25+
2026
When I run `wp import --help`
2127
Then STDOUT should contain:
2228
"""

features/core-update.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Feature: Update WordPress core
161161
wordpress-4.2.4-partial-1-en_US.zip
162162
"""
163163

164+
@less-than-php-7
164165
Scenario: Make sure files are cleaned up
165166
Given a WP install
166167
When I run `wp core update --version=4.4 --force`

0 commit comments

Comments
 (0)