OSDN Git Service

wvm/wvm.git
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

10 years agoRefactored end of line trim of synopsis extraction into regex.
Andrey Savchenko [Wed, 18 Sep 2013 10:31:31 +0000 (13:31 +0300)]
Refactored end of line trim of synopsis extraction into regex.

10 years agoTrimmed whitespace on extracted synopsis lines
Andrey Savchenko [Tue, 17 Sep 2013 17:15:02 +0000 (20:15 +0300)]
Trimmed whitespace on extracted synopsis lines

Fixes #770 on Windows

10 years agoremove extra spaces in scaffold templates
scribu [Mon, 16 Sep 2013 09:15:10 +0000 (12:15 +0300)]
remove extra spaces in scaffold templates

10 years agoMerge pull request #768 from thisislawatts/patch-1
Cristi Burcă [Mon, 16 Sep 2013 09:12:58 +0000 (02:12 -0700)]
Merge pull request #768 from thisislawatts/patch-1

Adds show_admin_column

10 years agoAdds show_admin_column
LA Watts [Mon, 16 Sep 2013 04:20:26 +0000 (05:20 +0100)]
Adds show_admin_column

10 years agoMerge pull request #767 from wp-cli/fix-663
Cristi Burcă [Sun, 15 Sep 2013 23:37:31 +0000 (16:37 -0700)]
Merge pull request #767 from wp-cli/fix-663

If a subcommand requires a config value to be set, then check it.

10 years agoinstead of ignoring them, pass config values along with regular assoc args to validat...
scribu [Sun, 15 Sep 2013 23:06:14 +0000 (02:06 +0300)]
instead of ignoring them, pass config values along with regular assoc args to validate_assoc()

10 years agoadd test that catches #663
scribu [Sun, 15 Sep 2013 23:13:48 +0000 (02:13 +0300)]
add test that catches #663

10 years agorename some variables, for clarity.
scribu [Sun, 15 Sep 2013 22:38:08 +0000 (01:38 +0300)]
rename some variables, for clarity.

10 years agoMerge pull request #754 from smhmic/patch-2
Cristi Burcă [Thu, 12 Sep 2013 10:06:54 +0000 (03:06 -0700)]
Merge pull request #754 from smhmic/patch-2

allow (but ignore) a leading "[no-]" before flag name in @synopsis

10 years agoMerge pull request #755 from wp-cli/deprecate-synopsis-tag
Cristi Burcă [Thu, 12 Sep 2013 00:58:46 +0000 (17:58 -0700)]
Merge pull request #755 from wp-cli/deprecate-synopsis-tag

Deprecate @synopsis tag?

10 years agoMerge pull request #762 from wp-cli/fix-762
Cristi Burcă [Thu, 12 Sep 2013 00:47:44 +0000 (17:47 -0700)]
Merge pull request #762 from wp-cli/fix-762

`WP_CLI::confirm()` doesn't flush output

10 years agoremove synopsis tag where not needed
scribu [Wed, 11 Sep 2013 23:02:30 +0000 (02:02 +0300)]
remove synopsis tag where not needed

10 years agouse fwrite() instead of echo, to prevent buffering
scribu [Thu, 12 Sep 2013 00:18:53 +0000 (03:18 +0300)]
use fwrite() instead of echo, to prevent buffering

10 years agoremove synopsis tag from the rest of the core subcommands
scribu [Wed, 11 Sep 2013 22:34:39 +0000 (01:34 +0300)]
remove synopsis tag from the rest of the core subcommands

10 years agofirst pass at extracting synopsis from longdesc
scribu [Wed, 11 Sep 2013 21:31:27 +0000 (00:31 +0300)]
first pass at extracting synopsis from longdesc

10 years agomention dev-build in README. fixes #757
scribu [Wed, 11 Sep 2013 13:40:34 +0000 (16:40 +0300)]
mention dev-build in README. fixes #757

10 years agoMerge pull request #753 from dreamhost/db_config_template
Cristi Burcă [Tue, 10 Sep 2013 20:17:48 +0000 (13:17 -0700)]
Merge pull request #753 from dreamhost/db_config_template

`wp core config`: Add dbcharset and dbcollate params

10 years agoallow (but ignore) a leading "[no-]" before flag name in @synopsis
smhmic [Tue, 10 Sep 2013 19:29:23 +0000 (15:29 -0400)]
allow (but ignore) a leading "[no-]" before flag name in @synopsis

`no-` prefix on flag name sets it to `false`, but there was no valid way to show this in usage synopsis. Showing this is relevant for flags with a dynamic default value (like `--color` config flag).  This change makes `@synopsis [--[no-]flag]` valid.

10 years agowp core config: Add dbcharset and dbcollate params
Mike Schroder [Tue, 10 Sep 2013 18:56:45 +0000 (11:56 -0700)]
wp core config: Add dbcharset and dbcollate params

Allow dbcharset and dbcollate to be set on config to avoid character set
problems during migrations

10 years agoMerge pull request #752 from wp-cli/fix-update-all
Cristi Burcă [Tue, 10 Sep 2013 18:40:19 +0000 (11:40 -0700)]
Merge pull request #752 from wp-cli/fix-update-all

Fix `update --all`

10 years agomake 'update --all' work again and add test
scribu [Tue, 10 Sep 2013 18:25:35 +0000 (21:25 +0300)]
make 'update --all' work again and add test

10 years agoMerge pull request #745 from wp-cli/log-colorization
Cristi Burcă [Fri, 6 Sep 2013 19:17:13 +0000 (12:17 -0700)]
Merge pull request #745 from wp-cli/log-colorization

Log methods cleanup

10 years agofix usage of $label parameter in WP_CLI::error()
scribu [Fri, 6 Sep 2013 18:46:19 +0000 (21:46 +0300)]
fix usage of $label parameter in WP_CLI::error()

10 years agoadd unit test for regular logger
scribu [Fri, 6 Sep 2013 16:54:53 +0000 (19:54 +0300)]
add unit test for regular logger

10 years agoremove $label parameter from logging methods
scribu [Fri, 6 Sep 2013 16:27:01 +0000 (19:27 +0300)]
remove $label parameter from logging methods

The label text and color are just a way to signal to the user the type of message.

Changing it can lead to confusion. Example:

    WP_CLI::error( 'Something bad happened!', 'Success' );

10 years agodon't pass the message through colorization; only the label
scribu [Fri, 6 Sep 2013 16:11:05 +0000 (19:11 +0300)]
don't pass the message through colorization; only the label

fixes #744

10 years agoMerge pull request #743 from x-team/db-import-default-charset
Cristi Burcă [Fri, 6 Sep 2013 00:19:12 +0000 (17:19 -0700)]
Merge pull request #743 from x-team/db-import-default-charset

Specify DB_CHARSET as default-character-set for wp-db-import

10 years agoSpecify DB_CHARSET as default-character-set for wp-db-import
Weston Ruter [Fri, 6 Sep 2013 00:05:45 +0000 (17:05 -0700)]
Specify DB_CHARSET as default-character-set for wp-db-import

A DB export followed by a DB import of the same file was resulting in
corrupted UTF-8 characters. The script was being run in the
varying-vagrant-vagrants environment which has latin1 as the default
charset:

mysql> show variables like "character_set_%";
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | latin1                     |
| character_set_connection | latin1                     |
| character_set_database   | latin1                     |
| character_set_filesystem | binary                     |
| character_set_results    | latin1                     |
| character_set_server     | latin1                     |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+

10 years agoclean up _search() helper:
scribu [Fri, 30 Aug 2013 16:39:42 +0000 (19:39 +0300)]
clean up _search() helper:

* replace <plugin>/<theme> in synopsis with <search>
* check is_wp_error() before using $api
* rename $data to $items
* remove unused code for --interactive; no point supporting it if it's not functional yet

see #630

10 years agoMerge pull request #739 from wp-cli/activate-many
Cristi Burcă [Fri, 30 Aug 2013 16:38:29 +0000 (09:38 -0700)]
Merge pull request #739 from wp-cli/activate-many

Accept multiple arguments for remaining plugin subcommands

10 years agomake get_details() accept a plugin object
scribu [Fri, 30 Aug 2013 16:24:44 +0000 (19:24 +0300)]
make get_details() accept a plugin object

10 years agomake _delete() accept a plugin object
scribu [Fri, 30 Aug 2013 16:22:07 +0000 (19:22 +0300)]
make _delete() accept a plugin object

10 years agoreplace parse_name() with validate_plugin_names().
scribu [Fri, 30 Aug 2013 15:12:53 +0000 (18:12 +0300)]
replace parse_name() with validate_plugin_names().

10 years agofirst pass at making plugin {activate|deactivate|toggle} accept multiple items
scribu [Fri, 30 Aug 2013 13:46:07 +0000 (16:46 +0300)]
first pass at making plugin {activate|deactivate|toggle} accept multiple items

10 years agoMerge pull request #738 from oknoway/master
Cristi Burcă [Fri, 30 Aug 2013 09:25:07 +0000 (02:25 -0700)]
Merge pull request #738 from oknoway/master

Fix small typo

10 years agoFix small typo
Nate Bedortha [Fri, 30 Aug 2013 08:50:29 +0000 (01:50 -0700)]
Fix small typo

10 years agoMerge pull request #734 from wp-cli/fix-erroneous-error
Cristi Burcă [Thu, 29 Aug 2013 21:05:50 +0000 (14:05 -0700)]
Merge pull request #734 from wp-cli/fix-erroneous-error

Fix erroneous error

10 years agoFix erroneous error
Daniel Bachhuber [Thu, 29 Aug 2013 20:51:34 +0000 (13:51 -0700)]
Fix erroneous error

10 years agoMerge pull request #733 from wp-cli/support-arbitrary-filter
Cristi Burcă [Thu, 29 Aug 2013 19:44:06 +0000 (12:44 -0700)]
Merge pull request #733 from wp-cli/support-arbitrary-filter

Support arbitrary filters when listing terms and users

10 years agoSupport arbitrary filtering when listing terms
Daniel Bachhuber [Thu, 29 Aug 2013 18:41:07 +0000 (11:41 -0700)]
Support arbitrary filtering when listing terms

10 years agoSupport arbitrary filters when listing users
Daniel Bachhuber [Thu, 29 Aug 2013 18:36:56 +0000 (11:36 -0700)]
Support arbitrary filters when listing users

10 years agoMerge pull request #731 from stianlik/master
Cristi Burcă [Wed, 28 Aug 2013 11:06:25 +0000 (04:06 -0700)]
Merge pull request #731 from stianlik/master

Support for whitespace in file path

10 years agoSupport for whitespace in file path
= [Wed, 28 Aug 2013 10:37:17 +0000 (12:37 +0200)]
Support for whitespace in file path

10 years agobehat: pass process result to checkString() for richer error messages
scribu [Tue, 27 Aug 2013 22:28:56 +0000 (01:28 +0300)]
behat: pass process result to checkString() for richer error messages

10 years agoMerge pull request #724 from wp-cli/variadic-validation
Cristi Burcă [Tue, 27 Aug 2013 22:24:08 +0000 (15:24 -0700)]
Merge pull request #724 from wp-cli/variadic-validation

Show usage when no parameters are passed

10 years agousage errors exit with code 1
scribu [Tue, 27 Aug 2013 21:55:29 +0000 (00:55 +0300)]
usage errors exit with code 1

10 years agobehat: remove unused 'I try to import it' step
scribu [Tue, 27 Aug 2013 21:38:35 +0000 (00:38 +0300)]
behat: remove unused 'I try to import it' step

10 years agomedia regenerate: attachment IDs are optional
scribu [Tue, 27 Aug 2013 21:10:51 +0000 (00:10 +0300)]
media regenerate: attachment IDs are optional

10 years agodon't ignore repeating arguments in enough_positionals() check
scribu [Tue, 27 Aug 2013 20:30:34 +0000 (23:30 +0300)]
don't ignore repeating arguments in enough_positionals() check

10 years agoadd behat test for variadic commands
scribu [Tue, 27 Aug 2013 20:23:15 +0000 (23:23 +0300)]
add behat test for variadic commands

10 years agoMerge pull request #673 from wp-cli/prompt-673
Cristi Burcă [Mon, 26 Aug 2013 00:27:25 +0000 (17:27 -0700)]
Merge pull request #673 from wp-cli/prompt-673

Global support for `--prompt`

10 years agoremove leftover $prompt property
scribu [Mon, 26 Aug 2013 00:24:40 +0000 (03:24 +0300)]
remove leftover $prompt property

10 years agoWe don't need a `prompt()` util right now. Instead, let's better utilize PHP cli...
Daniel Bachhuber [Mon, 26 Aug 2013 00:17:36 +0000 (17:17 -0700)]
We don't need a `prompt()` util right now. Instead, let's better utilize PHP cli tools

10 years agoCatch the thrown exception
Daniel Bachhuber [Sun, 25 Aug 2013 23:26:20 +0000 (16:26 -0700)]
Catch the thrown exception

10 years agoMerge pull request #700 from wp-cli/comment-list-700
Cristi Burcă [Sun, 25 Aug 2013 21:08:36 +0000 (14:08 -0700)]
Merge pull request #700 from wp-cli/comment-list-700

Add `wp comment list`

10 years agoMerge pull request #726 from Rarst/doc-block-eol-fix
Cristi Burcă [Sun, 25 Aug 2013 20:39:19 +0000 (13:39 -0700)]
Merge pull request #726 from Rarst/doc-block-eol-fix

Fixed regex for better matching EOL when cleaning doc block

10 years agoA functional test for `wp comment list`
Daniel Bachhuber [Sun, 25 Aug 2013 20:36:14 +0000 (13:36 -0700)]
A functional test for `wp comment list`

10 years agoImplement `wp comment list`
Daniel Bachhuber [Sun, 25 Aug 2013 20:36:02 +0000 (13:36 -0700)]
Implement `wp comment list`

10 years agoFixed regex for better matching EOL when cleaning doc block
Andrey Savchenko [Sun, 25 Aug 2013 20:27:27 +0000 (23:27 +0300)]
Fixed regex for better matching EOL when cleaning doc block

10 years agoA better way of achieving this.
Daniel Bachhuber [Sun, 25 Aug 2013 19:33:16 +0000 (12:33 -0700)]
A better way of achieving this.

See https://github.com/wp-cli/wp-cli/pull/673/files#r5969302

10 years agoSupport for generic arguments
Daniel Bachhuber [Sun, 25 Aug 2013 19:23:09 +0000 (12:23 -0700)]
Support for generic arguments

10 years agoAdd support for prompting `--flag`
Daniel Bachhuber [Sun, 25 Aug 2013 18:56:54 +0000 (11:56 -0700)]
Add support for prompting `--flag`

10 years agoBetter use of `\cli\prompt()`, which requires a default argument if the prompt is...
Daniel Bachhuber [Sun, 25 Aug 2013 18:40:43 +0000 (11:40 -0700)]
Better use of `\cli\prompt()`, which requires a default argument if the prompt is to be optional

10 years agoSupport for repeating positional arguments
Daniel Bachhuber [Sun, 25 Aug 2013 18:32:11 +0000 (11:32 -0700)]
Support for repeating positional arguments

10 years agoUse `\cli\prompt()` instead of reinventing the wheel
Daniel Bachhuber [Sun, 25 Aug 2013 18:24:18 +0000 (11:24 -0700)]
Use `\cli\prompt()` instead of reinventing the wheel

See https://github.com/wp-cli/wp-cli/pull/673#issuecomment-22938858

10 years agoMerge branch 'master' into prompt-673
Daniel Bachhuber [Sun, 25 Aug 2013 18:17:40 +0000 (11:17 -0700)]
Merge branch 'master' into prompt-673

10 years agoMerge pull request #723 from wp-cli/install-many
Cristi Burcă [Sun, 25 Aug 2013 13:39:34 +0000 (06:39 -0700)]
Merge pull request #723 from wp-cli/install-many

Support installing multiple plugins or themes at once

10 years agomake sure the slug is always part of the warning
scribu [Sun, 25 Aug 2013 13:32:26 +0000 (16:32 +0300)]
make sure the slug is always part of the warning

The standard plugin/theme upgrader strings don't contain the slug.

10 years ago'wp theme install' only shows a warning now
scribu [Sun, 25 Aug 2013 13:16:48 +0000 (16:16 +0300)]
'wp theme install' only shows a warning now