Skip to content

Commit 6e961c4

Browse files
authored
Merge pull request #3884 from wp-cli/3728-media-command
Abstract `wp media *` to wp-cli/media-command
2 parents 43e3106 + 6ac3657 commit 6e961c4

6 files changed

Lines changed: 56 additions & 848 deletions

File tree

‎composer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"composer/composer": "^1.2.0",
3535
"wp-cli/cron-command": "^1.0",
3636
"wp-cli/import-command": "^1.0",
37-
"wp-cli/db-command": "^1.0"
37+
"wp-cli/db-command": "^1.0",
38+
"wp-cli/media-command": "^1.0"
3839
},
3940
"require-dev": {
4041
"phpunit/phpunit": "3.7.*",

‎composer.lock‎

Lines changed: 48 additions & 1 deletion
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
@@ -23,6 +23,12 @@ Feature: WP-CLI Commands
2323
wp import <file>... --authors=<authors>
2424
"""
2525

26+
When I run `wp media`
27+
Then STDOUT should contain:
28+
"""
29+
or: wp media regenerate
30+
"""
31+
2632
Scenario: Invalid class is specified for a command
2733
Given an empty directory
2834
And a custom-cmd.php file:

‎features/media-import.feature‎

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

0 commit comments

Comments
 (0)