OSDN Git Service
scribu [Tue, 27 Aug 2013 21:10:51 +0000 (00:10 +0300)]
media regenerate: attachment IDs are optional
scribu [Tue, 27 Aug 2013 20:30:34 +0000 (23:30 +0300)]
don't ignore repeating arguments in enough_positionals() check
scribu [Tue, 27 Aug 2013 20:23:15 +0000 (23:23 +0300)]
add behat test for variadic commands
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`
scribu [Mon, 26 Aug 2013 00:24:40 +0000 (03:24 +0300)]
remove leftover $prompt property
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
Daniel Bachhuber [Sun, 25 Aug 2013 23:26:20 +0000 (16:26 -0700)]
Catch the thrown exception
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`
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
Daniel Bachhuber [Sun, 25 Aug 2013 20:36:14 +0000 (13:36 -0700)]
A functional test for `wp comment list`
Daniel Bachhuber [Sun, 25 Aug 2013 20:36:02 +0000 (13:36 -0700)]
Implement `wp comment list`
Andrey Savchenko [Sun, 25 Aug 2013 20:27:27 +0000 (23:27 +0300)]
Fixed regex for better matching EOL when cleaning doc block
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
Daniel Bachhuber [Sun, 25 Aug 2013 19:23:09 +0000 (12:23 -0700)]
Support for generic arguments
Daniel Bachhuber [Sun, 25 Aug 2013 18:56:54 +0000 (11:56 -0700)]
Add support for prompting `--flag`
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
Daniel Bachhuber [Sun, 25 Aug 2013 18:32:11 +0000 (11:32 -0700)]
Support for repeating positional arguments
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
Daniel Bachhuber [Sun, 25 Aug 2013 18:17:40 +0000 (11:17 -0700)]
Merge branch 'master' into prompt-673
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
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.
scribu [Sun, 25 Aug 2013 13:16:48 +0000 (16:16 +0300)]
'wp theme install' only shows a warning now
scribu [Sun, 25 Aug 2013 12:28:42 +0000 (15:28 +0300)]
first pass at supporting multiple plugin/theme installs
scribu [Thu, 22 Aug 2013 20:02:06 +0000 (23:02 +0300)]
behat: whitespace fixes
Cristi Burcă [Thu, 22 Aug 2013 19:01:37 +0000 (12:01 -0700)]
Merge pull request #720 from wp-cli/update-many
Allow passing multiple items to 'wp plugin update' and 'wp theme update'
scribu [Thu, 22 Aug 2013 18:58:25 +0000 (21:58 +0300)]
{plugin|theme} update: add more examples
[ci skip]
scribu [Thu, 22 Aug 2013 18:19:12 +0000 (21:19 +0300)]
{plugin|theme} update: improve --dry-run output
scribu [Thu, 22 Aug 2013 18:05:06 +0000 (21:05 +0300)]
allow passing multiple items to 'wp plugin update' and 'wp theme update'
also, bring back `wp plugin update --all` and `wp theme update --all`
scribu [Wed, 21 Aug 2013 22:09:24 +0000 (01:09 +0300)]
fix and simplify the --skip-salts test. see #696
scribu [Wed, 21 Aug 2013 22:05:30 +0000 (01:05 +0300)]
Merge pull request #696 from nikolay/patch-1
Nikolay Kolev [Wed, 21 Aug 2013 21:59:07 +0000 (14:59 -0700)]
Fixed a typoe in --skip-salts synopsis
Cristi Burcă [Wed, 21 Aug 2013 21:40:29 +0000 (14:40 -0700)]
Merge pull request #435 from wp-cli/core-config-435
`wp core config` fails on any empty parameter
Nikolay Kolev [Wed, 21 Aug 2013 21:27:42 +0000 (14:27 -0700)]
Added tests for the --skip-salts parameter
scribu [Wed, 21 Aug 2013 21:27:07 +0000 (00:27 +0300)]
behat: replace hidden parameters to 'wp config' with explicit variable
scribu [Wed, 21 Aug 2013 21:05:14 +0000 (00:05 +0300)]
core config: use cmd_starts_with() instead of doing a strict array comparison
scribu [Wed, 21 Aug 2013 20:58:23 +0000 (23:58 +0300)]
behat: show working dir when the return code is wrong
scribu [Wed, 21 Aug 2013 20:06:36 +0000 (23:06 +0300)]
add test that reproduces both #435 and #716
Nikolay Kolev [Wed, 21 Aug 2013 08:45:23 +0000 (01:45 -0700)]
Don't include the comments, which would be irrelevant without the salts.
Based on @scribu's idea.
Cristi Burcă [Tue, 20 Aug 2013 18:34:11 +0000 (11:34 -0700)]
Merge pull request #710 from johnbillion/flush-docs
Correct the inline docs for the `--hard` flag on `wp rewrite flush`
John Blackbourn [Tue, 20 Aug 2013 17:57:26 +0000 (18:57 +0100)]
Correct the inline docs for the `--hard` flag on `wp rewrite flush`
Cristi Burcă [Tue, 20 Aug 2013 15:22:54 +0000 (08:22 -0700)]
Merge pull request #702 from wp-cli/term-get-702
Add `wp term get`
Daniel Bachhuber [Tue, 20 Aug 2013 15:07:52 +0000 (08:07 -0700)]
Test `wp term get`
Daniel Bachhuber [Tue, 20 Aug 2013 15:07:37 +0000 (08:07 -0700)]
A subcommand for getting a taxonomy term
Cristi Burcă [Tue, 20 Aug 2013 14:49:04 +0000 (07:49 -0700)]
Merge pull request #707 from wp-cli/more-assoc-table-707
Use assoc_array_to_table() in more places
Cristi Burcă [Tue, 20 Aug 2013 14:44:19 +0000 (07:44 -0700)]
Merge pull request #705 from wp-cli/fix-theme-path
Minor improvements to `wp theme path`
Cristi Burcă [Tue, 20 Aug 2013 14:41:59 +0000 (07:41 -0700)]
Merge pull request #701 from wp-cli/comment-get-701
Add `wp comment get`
Daniel Bachhuber [Tue, 20 Aug 2013 14:38:31 +0000 (07:38 -0700)]
This method has been replaced by a helper util of the same functionality
Daniel Bachhuber [Tue, 20 Aug 2013 14:37:59 +0000 (07:37 -0700)]
Use our new util function
Daniel Bachhuber [Tue, 20 Aug 2013 06:04:48 +0000 (23:04 -0700)]
Test for `wp comment get`
Daniel Bachhuber [Tue, 20 Aug 2013 06:02:36 +0000 (23:02 -0700)]
Implement `wp comment get`
Daniel Bachhuber [Tue, 20 Aug 2013 14:13:30 +0000 (07:13 -0700)]
Use P2, which isn't conditionally present in some WordPress installs
Daniel Bachhuber [Tue, 20 Aug 2013 14:12:09 +0000 (07:12 -0700)]
Merge branch 'master' into fix-theme-path
Conflicts:
features/theme.feature
Cristi Burcă [Tue, 20 Aug 2013 11:40:59 +0000 (04:40 -0700)]
Merge pull request #703 from wp-cli/theme-get-703
Add `wp theme get`
Daniel Bachhuber [Tue, 20 Aug 2013 06:08:13 +0000 (23:08 -0700)]
Use P2 for tests instead, which won't fatal 3.4 (twentyeleven is already installed)
Daniel Bachhuber [Tue, 20 Aug 2013 05:57:01 +0000 (22:57 -0700)]
Implement `wp theme get`
Daniel Bachhuber [Tue, 20 Aug 2013 05:26:06 +0000 (22:26 -0700)]
Clarification on what this command actually does
Daniel Bachhuber [Tue, 20 Aug 2013 05:24:03 +0000 (22:24 -0700)]
A functional test for `wp theme path`
Daniel Bachhuber [Tue, 20 Aug 2013 05:12:24 +0000 (22:12 -0700)]
This should explicitly be a public method.
Nikolay Kolev [Tue, 20 Aug 2013 01:37:42 +0000 (18:37 -0700)]
Switched from --keys-and-salts="..." option to --skip-salts based on @scribu and @danielbachhuber proposal
Cristi Burcă [Tue, 20 Aug 2013 00:10:41 +0000 (17:10 -0700)]
Merge pull request #699 from wp-cli/fix-synopsis
Fix synopsis order
Daniel Bachhuber [Mon, 19 Aug 2013 23:58:55 +0000 (16:58 -0700)]
Fix synopsis order
Make it consistent with other core commands.
Daniel Bachhuber [Mon, 19 Aug 2013 23:46:11 +0000 (16:46 -0700)]
Properly set positional arguments
Daniel Bachhuber [Mon, 19 Aug 2013 22:52:45 +0000 (15:52 -0700)]
Register `--prompt` as a global argument
Doing so is more correct, and avoids this warning:
```
Warning: unknown --prompt parameter
```
jmslbam [Thu, 1 Aug 2013 21:12:55 +0000 (23:12 +0200)]
Exclude assoc args with that have an optional value from being unset
An assoc args with an option value shouldn't trigger the message "--foo parameter needs a value".
Because it doesn't needs a value. Else it would defeat the whole purpose of having `--foo[=<bar>]`.
It needs to be available within the command so you can still do something with it.
scribu [Mon, 19 Aug 2013 22:41:51 +0000 (01:41 +0300)]
add test for assoc arg with optional value
Daniel Bachhuber [Mon, 19 Aug 2013 22:34:19 +0000 (15:34 -0700)]
If the `--prompt` arg is specified, prompt the user for arguments
Daniel Bachhuber [Mon, 19 Aug 2013 22:33:44 +0000 (15:33 -0700)]
A helper method to prompt the user for some detail
Nikolay Kolev [Mon, 19 Aug 2013 20:11:16 +0000 (13:11 -0700)]
Allows passing existing keys and salts vs generating afresh
In a multi-server environment, if you want a consistent configuration without having to patch the automatically generated wp-config.php, there should be a way to pass the common keys and salts.
Cristi Burcă [Fri, 16 Aug 2013 20:56:19 +0000 (13:56 -0700)]
Merge pull request #685 from wp-cli/db-call-cleanup
Refactor code that makes calls to `mysql` and friends
scribu [Fri, 16 Aug 2013 20:45:18 +0000 (23:45 +0300)]
minor cleanup in mysql_host_to_cli_args()
scribu [Fri, 16 Aug 2013 20:24:15 +0000 (23:24 +0300)]
Refactor MySQL utilities:
* extract mysql_host_to_cli_args() helper
* make run_mysql_command() accept an associative array of args
* remove redundant run_mysql_query() utility
scribu [Fri, 16 Aug 2013 18:34:19 +0000 (21:34 +0300)]
pass MYSQL_PWD to proc_open(), instead of altering the current environment
Cristi Burcă [Fri, 16 Aug 2013 18:25:13 +0000 (11:25 -0700)]
Merge pull request #684 from oxford-themes/db-export-host_port-fix
Fix for: "wp db export" fails when port given: define('DB_HOST', '127.0.0.1:55006') in wp-config.php
mattes [Fri, 16 Aug 2013 17:45:30 +0000 (19:45 +0200)]
adding support for sockets
mattes [Fri, 16 Aug 2013 17:20:01 +0000 (19:20 +0200)]
fixed bug, when having a port number in host
scribu [Fri, 16 Aug 2013 15:11:30 +0000 (18:11 +0300)]
always use bundled autoload in Phar file
see #658
scribu [Fri, 16 Aug 2013 15:09:27 +0000 (18:09 +0300)]
make wp.bat executable
Cristi Burcă [Fri, 16 Aug 2013 14:58:24 +0000 (07:58 -0700)]
Merge pull request #662 from wp-cli/csv-stream
Make --format=csv stream output
scribu [Fri, 16 Aug 2013 00:52:30 +0000 (03:52 +0300)]
cast arrays to objects instead of the other way around
the advantage is that objects that have magic methods don't need special
handling
scribu [Fri, 16 Aug 2013 00:39:22 +0000 (03:39 +0300)]
convert user object to array using its to_array() method
scribu [Fri, 16 Aug 2013 00:38:35 +0000 (03:38 +0300)]
add some missing conversions to/from iterators
scribu [Fri, 16 Aug 2013 00:03:55 +0000 (03:03 +0300)]
introduce iterator_map() and avoid converting iterator to array in `wp site list`
scribu [Thu, 15 Aug 2013 23:57:15 +0000 (02:57 +0300)]
avoid converting iterator into array unless absolutely necessary in
format_items()
scribu [Thu, 15 Aug 2013 15:15:34 +0000 (18:15 +0300)]
set 'master' as the deploy branch; see #658
Cristi Burcă [Thu, 15 Aug 2013 15:11:37 +0000 (08:11 -0700)]
Merge pull request #658 from wp-cli/phar-builder
Bring back Phar archives
scribu [Thu, 15 Aug 2013 14:08:43 +0000 (17:08 +0300)]
automatically deploy Phar file to wp-cli/builds
Cristi Burcă [Wed, 14 Aug 2013 23:40:08 +0000 (16:40 -0700)]
Merge pull request #678 from wp-cli/change-autoload-678
Prefer outer `autoload.php` file
scribu [Wed, 14 Aug 2013 21:47:58 +0000 (00:47 +0300)]
move Phar building to ci/prepare.sh and rename ci/build.sh to ci/test.sh
Daniel Bachhuber [Wed, 14 Aug 2013 21:50:05 +0000 (21:50 +0000)]
Change load order of autoloaders
scribu [Wed, 14 Aug 2013 21:07:02 +0000 (00:07 +0300)]
move WP_CLI_BIN_DIR env variable to .travis.yml
scribu [Wed, 14 Aug 2013 21:03:38 +0000 (00:03 +0300)]
give shorter names to ci scripts
scribu [Wed, 14 Aug 2013 20:38:45 +0000 (23:38 +0300)]
phar: add all files from the templates/ directory
scribu [Wed, 14 Aug 2013 20:21:32 +0000 (23:21 +0300)]
phar: add missing rumsaa/array_column dependency
scribu [Wed, 14 Aug 2013 20:20:29 +0000 (23:20 +0300)]
run the functional tests against the Phar file
scribu [Wed, 14 Aug 2013 20:31:08 +0000 (23:31 +0300)]
bump version to 0.12-alpha2
scribu [Wed, 14 Aug 2013 19:52:47 +0000 (22:52 +0300)]
add symfony/finder as dev dependency
scribu [Wed, 14 Aug 2013 19:00:34 +0000 (22:00 +0300)]
resurect Phar building code removed in
8483fb709b2285a033515f59b4ad818468a0372a
changes:
* make WP_CLI_ROOT relative to the root dir, not to php/
* remove man/ and add vendor/rmmcue
scribu [Wed, 14 Aug 2013 17:00:07 +0000 (20:00 +0300)]
bring back accidentally removed test; see #674
scribu [Wed, 14 Aug 2013 14:54:10 +0000 (17:54 +0300)]
whitespace fixes
[ci skip]
scribu [Wed, 14 Aug 2013 14:40:20 +0000 (17:40 +0300)]
Don't pretend we're in wp-admin, but continue to load all admin APIs.
The WP_CLI context is not like the WP_ADMIN context. It's a different
animal.
See #674 for more details.
Fixes #477, #519, #574, #579, #582, #669