OSDN Git Service

wvm/wvm.git
10 years agoA more precise test
Daniel Bachhuber [Sun, 6 Oct 2013 15:33:18 +0000 (17:33 +0200)]
A more precise test

See https://github.com/wp-cli/wp-cli/pull/777#discussion_r6787013

10 years agoTest `post__in` scenario
Daniel Bachhuber [Sun, 6 Oct 2013 15:23:21 +0000 (17:23 +0200)]
Test `post__in` scenario

10 years agoSpecial treatment for `__` arguments (e.g. post__in, post__not_in)
Daniel Bachhuber [Sun, 6 Oct 2013 15:20:16 +0000 (17:20 +0200)]
Special treatment for `__` arguments (e.g. post__in, post__not_in)

10 years agoMerge pull request #815 from wp-cli/requests-stable
Cristi Burcă [Sun, 6 Oct 2013 15:10:56 +0000 (08:10 -0700)]
Merge pull request #815 from wp-cli/requests-stable

update to Requests 1.6

10 years agoupdate to Requests 1.6
scribu [Sun, 6 Oct 2013 14:37:56 +0000 (16:37 +0200)]
update to Requests 1.6

10 years agobump version to 0.13.0-alpha
scribu [Sun, 6 Oct 2013 14:38:57 +0000 (16:38 +0200)]
bump version to 0.13.0-alpha

10 years agobump version to 0.12.0 v0.12.0
scribu [Fri, 4 Oct 2013 13:54:34 +0000 (15:54 +0200)]
bump version to 0.12.0

10 years agocontrib-list: add newline
scribu [Fri, 4 Oct 2013 13:44:00 +0000 (15:44 +0200)]
contrib-list: add newline

10 years agoadd new contributors since the 0.11.2 release
scribu [Fri, 4 Oct 2013 13:41:39 +0000 (15:41 +0200)]
add new contributors since the 0.11.2 release

10 years agoMerge pull request #810 from wp-cli/theme-is-installed
Cristi Burcă [Fri, 4 Oct 2013 13:15:04 +0000 (06:15 -0700)]
Merge pull request #810 from wp-cli/theme-is-installed

Implement `wp theme is-installed`

10 years agoimplement 'wp theme is-installed'
scribu [Fri, 4 Oct 2013 12:46:26 +0000 (14:46 +0200)]
implement 'wp theme is-installed'

10 years agoMerge pull request #809 from wp-cli/plugin-get-validate
Cristi Burcă [Fri, 4 Oct 2013 12:45:32 +0000 (05:45 -0700)]
Merge pull request #809 from wp-cli/plugin-get-validate

`wp plugin get` doesn't validate the argument properly

10 years agocombine tests for plugin|theme get
scribu [Fri, 4 Oct 2013 12:28:39 +0000 (14:28 +0200)]
combine tests for plugin|theme get

10 years agocheck response from _parse_name()
scribu [Fri, 4 Oct 2013 12:24:37 +0000 (14:24 +0200)]
check response from _parse_name()

10 years agobump version to 0.12-beta
scribu [Thu, 3 Oct 2013 22:44:25 +0000 (00:44 +0200)]
bump version to 0.12-beta

10 years agopeg rmccue/requests to a specific revision
scribu [Thu, 3 Oct 2013 22:16:07 +0000 (00:16 +0200)]
peg rmccue/requests to a specific revision

still waiting for a stable tag: https://github.com/rmccue/Requests/issues/43

10 years agoMerge pull request #801 from goldenapples into master
scribu [Tue, 1 Oct 2013 23:04:48 +0000 (02:04 +0300)]
Merge pull request #801 from goldenapples into master

10 years agoAdd feature tests for `wp post edit`
goldenapples [Tue, 1 Oct 2013 20:59:46 +0000 (13:59 -0700)]
Add feature tests for `wp post edit`

Adds two new feature tests for wp post edit: one that simulates opening
an editor and quitting right out of it, and one that simulates chnaging
a word and then saving.

10 years agowp post edit should no longer call parent::update
goldenapples [Tue, 1 Oct 2013 20:58:23 +0000 (13:58 -0700)]
wp post edit should no longer call parent::update

This broke in f6285d3 when CommandWithDBObject::update was removed and
_update made protected. It should have been defined as $this->update
from the beginning.

10 years agoMerge pull request #802 from wp-cli/list-field
Cristi Burcă [Tue, 1 Oct 2013 20:18:04 +0000 (13:18 -0700)]
Merge pull request #802 from wp-cli/list-field

`list --field=` ignores `--format=json`

10 years agoset all_with_meta, for WP 3.4
scribu [Tue, 1 Oct 2013 19:32:06 +0000 (22:32 +0300)]
set all_with_meta, for WP 3.4

10 years agorespect --format=json when --field= is passed in list subcommands
scribu [Tue, 1 Oct 2013 17:38:00 +0000 (20:38 +0300)]
respect --format=json when --field= is passed in list subcommands

10 years agouse Formatter in CommandWithUpgrade->_list()
scribu [Tue, 1 Oct 2013 17:26:29 +0000 (20:26 +0300)]
use Formatter in CommandWithUpgrade->_list()

10 years agouse formatter in 'wp role list'
scribu [Tue, 1 Oct 2013 16:41:57 +0000 (19:41 +0300)]
use formatter in 'wp role list'

10 years agomove logic from format_items() into WP_CLI\Formatter class
scribu [Tue, 1 Oct 2013 16:24:34 +0000 (19:24 +0300)]
move logic from format_items() into WP_CLI\Formatter class

10 years agoextract find_item_key() method
scribu [Tue, 1 Oct 2013 16:12:52 +0000 (19:12 +0300)]
extract find_item_key() method

10 years agofix get_formatter()
scribu [Tue, 1 Oct 2013 16:09:11 +0000 (19:09 +0300)]
fix get_formatter()

10 years agolet format_items() handle case where fields aren't set, for now
scribu [Tue, 1 Oct 2013 15:42:18 +0000 (18:42 +0300)]
let format_items() handle case where fields aren't set, for now

10 years agomove disparate formatting utilities into the WP_CLI\Formatter class
scribu [Tue, 1 Oct 2013 15:39:35 +0000 (18:39 +0300)]
move disparate formatting utilities into the WP_CLI\Formatter class

10 years agointroduce WP_CLI\Formatter class
scribu [Tue, 1 Oct 2013 15:15:21 +0000 (18:15 +0300)]
introduce WP_CLI\Formatter class

10 years agowhitespace fixes
scribu [Tue, 1 Oct 2013 13:36:55 +0000 (16:36 +0300)]
whitespace fixes

10 years agoMerge pull request #795 from wp-cli/theme-get-field-795
Cristi Burcă [Tue, 1 Oct 2013 13:14:13 +0000 (06:14 -0700)]
Merge pull request #795 from wp-cli/theme-get-field-795

`wp theme get` should accept a `--field=` arg

10 years agoStrings are strings
Daniel Bachhuber [Tue, 1 Oct 2013 12:03:07 +0000 (14:03 +0200)]
Strings are strings

10 years agoThis is a better format
Daniel Bachhuber [Tue, 1 Oct 2013 12:02:07 +0000 (14:02 +0200)]
This is a better format

See https://github.com/wp-cli/wp-cli/pull/795#issuecomment-25442654

10 years ago`--field=<field>` support for `wp term list` and `wp term get`
Daniel Bachhuber [Tue, 1 Oct 2013 03:49:52 +0000 (05:49 +0200)]
`--field=<field>` support for `wp term list` and `wp term get`

10 years agoIntroduce `wp plugin get`
Daniel Bachhuber [Tue, 1 Oct 2013 03:37:45 +0000 (05:37 +0200)]
Introduce `wp plugin get`

Closes #796

10 years agoSimplify again
Daniel Bachhuber [Tue, 1 Oct 2013 03:36:00 +0000 (05:36 +0200)]
Simplify again

10 years agoRemove unused methods
Daniel Bachhuber [Tue, 1 Oct 2013 03:09:33 +0000 (05:09 +0200)]
Remove unused methods

10 years agoConvert `wp post *` to new util functions.
Daniel Bachhuber [Tue, 1 Oct 2013 03:09:03 +0000 (05:09 +0200)]
Convert `wp post *` to new util functions.

10 years agoMethod isn't used anymore
Daniel Bachhuber [Tue, 1 Oct 2013 03:08:35 +0000 (05:08 +0200)]
Method isn't used anymore

10 years agoConvert `wp site list` to new util function.
Daniel Bachhuber [Tue, 1 Oct 2013 03:07:30 +0000 (05:07 +0200)]
Convert `wp site list` to new util function.

10 years agoConvert `wp user *` to new util functions.
Daniel Bachhuber [Tue, 1 Oct 2013 03:03:16 +0000 (05:03 +0200)]
Convert `wp user *` to new util functions.

10 years agoRun moar faster
Daniel Bachhuber [Tue, 1 Oct 2013 03:00:16 +0000 (05:00 +0200)]
Run moar faster

10 years agoHave `show_single_field()` logically persist the `--format` argument.
Daniel Bachhuber [Tue, 1 Oct 2013 02:52:55 +0000 (04:52 +0200)]
Have `show_single_field()` logically persist the `--format` argument.

10 years agoConvert `wp comment get` to new util functions
Daniel Bachhuber [Tue, 1 Oct 2013 02:43:18 +0000 (04:43 +0200)]
Convert `wp comment get` to new util functions

10 years agoConvert `wp theme get` to use new util function
Daniel Bachhuber [Tue, 1 Oct 2013 02:38:16 +0000 (04:38 +0200)]
Convert `wp theme get` to use new util function

10 years agoIntroduce `show_single_field()` and `show_multiple_fields()`, helper methods for...
Daniel Bachhuber [Tue, 1 Oct 2013 02:31:48 +0000 (04:31 +0200)]
Introduce `show_single_field()` and `show_multiple_fields()`, helper methods for printing object data

10 years agoMerge pull request #800 from wp-cli/rewrite-list
Cristi Burcă [Mon, 30 Sep 2013 23:49:27 +0000 (16:49 -0700)]
Merge pull request #800 from wp-cli/rewrite-list

Replace `wp rewrite dump` with `wp rewrite list`

10 years agomove recursive_unserialize_replace() into Search_Replace_Command class
scribu [Mon, 30 Sep 2013 23:38:36 +0000 (02:38 +0300)]
move recursive_unserialize_replace() into Search_Replace_Command class

it's not meant to be a general-purpose utility; its behaviour changes
according to the needs of the search-replace command

10 years agoMerge pull request #799 from nullvariable/ignore_objects
Cristi Burcă [Mon, 30 Sep 2013 23:33:10 +0000 (16:33 -0700)]
Merge pull request #799 from nullvariable/ignore_objects

rewrote the object loop to only deal with top level values

10 years agoremoved unneeded object test case.
Doug Cone [Mon, 30 Sep 2013 23:23:54 +0000 (19:23 -0400)]
removed unneeded object test case.

10 years agoCheck for non-string exit code after `wp post edit`
goldenapples [Mon, 30 Sep 2013 23:07:20 +0000 (16:07 -0700)]
Check for non-string exit code after `wp post edit`

Fixes bug introduced in f592cff, where quitting out of the system editor
would erase a post, because the `content_save_pre` filter would
fail to interpret system exit codes, and treat them as an empty string.

There must be a way to write a test for behavior like this, but how to
actually do that is beyond my knowledge. I did test with several
different $EDITOR settings (vi/nano/gedit), though, and this worked each
time for me.

10 years agorename `wp rewrite dump` to `wp rewrite list`
scribu [Mon, 30 Sep 2013 22:58:30 +0000 (01:58 +0300)]
rename `wp rewrite dump` to `wp rewrite list`

... and make its output consistent with the rest of the commands

10 years agosearch-replace will ignore all object data types to avoid recursion.
Doug Cone [Mon, 30 Sep 2013 22:28:18 +0000 (18:28 -0400)]
search-replace will ignore all object data types to avoid recursion.

10 years agoMerge pull request #711 from johnbillion/rewrite-dump-json
Cristi Burcă [Mon, 30 Sep 2013 22:15:59 +0000 (15:15 -0700)]
Merge pull request #711 from johnbillion/rewrite-dump-json

Fix the `--format` flag for the `wp rewrite dump` command

10 years agorewrote the object loop to only deal with top level values that are unserialized...
Doug Cone [Mon, 30 Sep 2013 21:59:37 +0000 (17:59 -0400)]
rewrote the object loop to only deal with top level values that are unserialized. Anything deeper than the first level will be ignored.

10 years agoMerge pull request #798 from dreamhost/mustache_templates
Cristi Burcă [Mon, 30 Sep 2013 21:47:06 +0000 (14:47 -0700)]
Merge pull request #798 from dreamhost/mustache_templates

framework: Allow third-party Mustache templates

10 years agoframework: Allow third-party Mustache templates
Mike Schroder [Mon, 30 Sep 2013 18:51:56 +0000 (11:51 -0700)]
framework: Allow third-party Mustache templates

Allow arbitrary mustache template to be supplied in mustache_render.

10 years agoWordwrap the description
Daniel Bachhuber [Mon, 30 Sep 2013 13:18:15 +0000 (15:18 +0200)]
Wordwrap the description

10 years agoImplement `wp theme get --field=<field>`
Daniel Bachhuber [Mon, 30 Sep 2013 13:09:51 +0000 (15:09 +0200)]
Implement `wp theme get --field=<field>`

10 years agofix bug where $_SERVER['SERVER_NAME'] was set incorrectly
scribu [Sun, 29 Sep 2013 03:02:38 +0000 (06:02 +0300)]
fix bug where $_SERVER['SERVER_NAME'] was set incorrectly

closes #765

10 years agoMerge pull request #718 from wp-cli/unknown-positionals
Cristi Burcă [Sun, 29 Sep 2013 02:43:48 +0000 (19:43 -0700)]
Merge pull request #718 from wp-cli/unknown-positionals

Add warning when passing positional parameters to commands that don't accept them

10 years agofix synopsis for 'wp option'
scribu [Sun, 29 Sep 2013 02:24:21 +0000 (05:24 +0300)]
fix synopsis for 'wp option'

10 years agofix synopsis for 'wp help'
scribu [Sun, 29 Sep 2013 02:17:44 +0000 (05:17 +0300)]
fix synopsis for 'wp help'

10 years agoadd warning when unregistered positional parameters are passed
scribu [Sun, 29 Sep 2013 01:56:03 +0000 (04:56 +0300)]
add warning when unregistered positional parameters are passed

10 years agoMerge pull request #761 from wp-cli/delete-many-themes
Cristi Burcă [Sun, 29 Sep 2013 01:48:24 +0000 (18:48 -0700)]
Merge pull request #761 from wp-cli/delete-many-themes

`wp theme delete` should accept multiple args

10 years agomake 'wp theme delete' support multiple args
scribu [Sun, 29 Sep 2013 01:06:55 +0000 (04:06 +0300)]
make 'wp theme delete' support multiple args

10 years agoremove 'wp comment last' subcommand
scribu [Sun, 29 Sep 2013 00:52:52 +0000 (03:52 +0300)]
remove 'wp comment last' subcommand

was superseded by 'wp comment list'

fixes #760

10 years agoMerge pull request #763 from wp-cli/doc-rewrap
Cristi Burcă [Sun, 29 Sep 2013 00:35:09 +0000 (17:35 -0700)]
Merge pull request #763 from wp-cli/doc-rewrap

Re-wrap documentation lines

10 years agohandle case where there is nothing after the last parameter description
scribu [Sun, 29 Sep 2013 00:24:54 +0000 (03:24 +0300)]
handle case where there is nothing after the last parameter description

10 years agoin PHP 5.3, self:: does not work inside closures
scribu [Sat, 28 Sep 2013 23:11:09 +0000 (02:11 +0300)]
in PHP 5.3, self:: does not work inside closures

10 years agowordwrap synopsis
scribu [Sat, 28 Sep 2013 22:50:23 +0000 (01:50 +0300)]
wordwrap synopsis

10 years agorewrap argument descriptions
scribu [Sat, 28 Sep 2013 22:34:18 +0000 (01:34 +0300)]
rewrap argument descriptions

10 years agoMerge pull request #778 from wp-cli/list-field
Cristi Burcă [Sat, 28 Sep 2013 20:07:35 +0000 (13:07 -0700)]
Merge pull request #778 from wp-cli/list-field

 Introduce `--field` option for `list` subcommands

10 years agoimplement --field= parameter for 'wp plugin list' and 'wp theme list'
scribu [Sat, 28 Sep 2013 19:40:44 +0000 (22:40 +0300)]
implement --field= parameter for 'wp plugin list' and 'wp theme list'

10 years agomove plugin/theme prepping code closer to where it's used
scribu [Sat, 28 Sep 2013 18:23:14 +0000 (21:23 +0300)]
move plugin/theme prepping code closer to where it's used

10 years agoimplement --field= parameter for 'wp site list'
scribu [Sat, 28 Sep 2013 17:44:52 +0000 (20:44 +0300)]
implement --field= parameter for 'wp site list'

10 years agoimplement --field= parameter for post, user and comment `list`
scribu [Fri, 27 Sep 2013 00:41:24 +0000 (03:41 +0300)]
implement --field= parameter for post, user and comment `list`
subcommands

10 years agoMerge pull request #794 from goldenapples/goldenapples/filters-on-post-edit
Cristi Burcă [Sat, 28 Sep 2013 14:38:32 +0000 (07:38 -0700)]
Merge pull request #794 from goldenapples/goldenapples/filters-on-post-edit

Apply default filters in content in `wp post edit`

10 years agofix `wp post edit`
scribu [Sat, 28 Sep 2013 14:35:28 +0000 (17:35 +0300)]
fix `wp post edit`

see #779

10 years agoApply default filters in content in `wp post edit`
goldenapples [Fri, 27 Sep 2013 19:09:20 +0000 (12:09 -0700)]
Apply default filters in content in `wp post edit`

I noticed that without applying the `the_editor_content` and
`content_save_pre` filters to the post content being edited, unexpected
things could happen when editing posts with the system editor. For
example, the Syntaxhighlighter Extended plugin uses these filters cto
decode entities when retrieving a post from that database to edit, and
then re-encode them on save.

There may be some extra thought required as to what the expected behavior
should be, but this apporach seems to make the most sense to me.

10 years agobehat: show STDOUT on error
scribu [Fri, 27 Sep 2013 00:39:43 +0000 (03:39 +0300)]
behat: show STDOUT on error

10 years agoMerge pull request #779 from wp-cli/site-dbobject
Cristi Burcă [Fri, 27 Sep 2013 00:18:02 +0000 (17:18 -0700)]
Merge pull request #779 from wp-cli/site-dbobject

Make `Site_Command` extend `CommandWithDbObject`

10 years agomake Site_Command extend CommandWithDBObject
scribu [Thu, 26 Sep 2013 23:37:44 +0000 (02:37 +0300)]
make Site_Command extend CommandWithDBObject

10 years agopass subcommand implementations as callbacks
scribu [Thu, 26 Sep 2013 23:17:47 +0000 (02:17 +0300)]
pass subcommand implementations as callbacks

This allows child classes to implement only some of the subcommands.

10 years agoMerge pull request #786 from wp-cli/fix-786
Cristi Burcă [Mon, 23 Sep 2013 14:14:48 +0000 (07:14 -0700)]
Merge pull request #786 from wp-cli/fix-786

No error reporting if XDebug is not enabled

10 years agoaccount for XDebug not being installed when setting 'display_errors'
scribu [Mon, 23 Sep 2013 13:59:57 +0000 (16:59 +0300)]
account for XDebug not being installed when setting 'display_errors'

10 years agoMerge pull request #780 from wp-cli/behat-background
Cristi Burcă [Fri, 20 Sep 2013 01:01:54 +0000 (18:01 -0700)]
Merge pull request #780 from wp-cli/behat-background

behat: use Background feature

10 years agobehat: use Background feature
scribu [Fri, 20 Sep 2013 00:52:07 +0000 (03:52 +0300)]
behat: use Background feature

10 years agoMerge pull request #776 from wp-cli/field-arg
Cristi Burcă [Thu, 19 Sep 2013 22:05:23 +0000 (15:05 -0700)]
Merge pull request #776 from wp-cli/field-arg

Introduce `--field` option for `get` subcommands

10 years agoadd --field arg to 'wp comment get'
scribu [Thu, 19 Sep 2013 21:40:41 +0000 (00:40 +0300)]
add --field arg to 'wp comment get'

10 years agoMerge branch 'master' into field-arg
scribu [Thu, 19 Sep 2013 21:34:38 +0000 (00:34 +0300)]
Merge branch 'master' into field-arg

10 years agoMerge pull request #766 from wp-cli/comment-dbobj
Cristi Burcă [Thu, 19 Sep 2013 21:34:03 +0000 (14:34 -0700)]
Merge pull request #766 from wp-cli/comment-dbobj

Add `wp comment update` subcommand

10 years agomake Comment_Command extend CommandWithDbObject
scribu [Thu, 19 Sep 2013 21:20:28 +0000 (00:20 +0300)]
make Comment_Command extend CommandWithDbObject

10 years agoadd --field arg to 'wp user get'
scribu [Thu, 19 Sep 2013 20:32:02 +0000 (23:32 +0300)]
add --field arg to 'wp user get'

10 years agoadd --field arg to 'wp post get'
scribu [Thu, 19 Sep 2013 20:18:49 +0000 (23:18 +0300)]
add --field arg to 'wp post get'

10 years agoMerge pull request #775 from c10b10/master
Cristi Burcă [Thu, 19 Sep 2013 15:36:40 +0000 (08:36 -0700)]
Merge pull request #775 from c10b10/master

Fix environment overwriting for mysql commands

10 years agoLint.
Alex Ciobica [Thu, 19 Sep 2013 15:14:49 +0000 (18:14 +0300)]
Lint.

10 years agoFix mysql environment issue.
Alex Ciobica [Thu, 19 Sep 2013 15:14:27 +0000 (18:14 +0300)]
Fix mysql environment issue.

10 years agoMerge pull request #771 from Rarst/synopsis-extract-fix
Cristi Burcă [Wed, 18 Sep 2013 10:39:54 +0000 (03:39 -0700)]
Merge pull request #771 from Rarst/synopsis-extract-fix

Trimmed whitespace on extracted synopsis lines