OSDN Git Service
Dan Gardner [Thu, 1 Aug 2013 20:09:16 +0000 (21:09 +0100)]
Support multi-line argument values (#624)
scribu [Thu, 1 Aug 2013 00:49:25 +0000 (03:49 +0300)]
remove unnecessary temporary variable
scribu [Thu, 1 Aug 2013 00:43:46 +0000 (03:43 +0300)]
don't return 'filter' object in `wp post get --format=json`
it's a transient value, not actual data
scribu [Wed, 31 Jul 2013 16:59:02 +0000 (19:59 +0300)]
giving credit where credit is due
scribu [Wed, 31 Jul 2013 16:54:12 +0000 (19:54 +0300)]
remove 'Need even more info' section
scribu [Tue, 30 Jul 2013 02:05:19 +0000 (05:05 +0300)]
Revert "remove redundant array_filter() around preg_split()"
This reverts commit
e8ea7f5b62baeb860cdc329a029d2cbc854f2d5c.
It's not redundant when the synopsis has leading or trailing whitespace
or when it's an empty string.
scribu [Tue, 30 Jul 2013 01:54:32 +0000 (04:54 +0300)]
remove redundant array_filter() around preg_split()
scribu [Tue, 30 Jul 2013 01:59:06 +0000 (04:59 +0300)]
ignore repeating parameters in enough_positionals()
This isn't necessarily the best approach, but it matches previous behaviour.
(see parent commit)
scribu [Tue, 30 Jul 2013 01:10:08 +0000 (04:10 +0300)]
Rewrite SynopsisParser to support optional values for assoc parameters.
Props @jmslbam for initial implementation and tests.
see #570
scribu [Tue, 30 Jul 2013 00:55:57 +0000 (03:55 +0300)]
introduce SynopsisValidator class
scribu [Sun, 28 Jul 2013 16:42:13 +0000 (19:42 +0300)]
add some Behat tests for `wp user *-role`
see #594
scribu [Sat, 27 Jul 2013 22:05:01 +0000 (01:05 +0300)]
make `wp user get` show roles
fixes #616
scribu [Sun, 28 Jul 2013 16:17:14 +0000 (19:17 +0300)]
allow WP_CLI::error() to do its thing
(it prints both the error message and any additional data)
Cristi Burcă [Sat, 27 Jul 2013 21:41:22 +0000 (14:41 -0700)]
Merge pull request #598 from wp-cli/multisite-install
Introduce command to install multisite from scratch
scribu [Wed, 24 Jul 2013 11:43:48 +0000 (14:43 +0300)]
fix indentation in .travis.yml
scribu [Tue, 23 Jul 2013 23:16:24 +0000 (02:16 +0300)]
merge master into multisite-install branch
Cristi Burcă [Tue, 23 Jul 2013 22:29:21 +0000 (15:29 -0700)]
Merge pull request #603 from wp-cli/fix-603
`wp core` should work without a WP install
scribu [Tue, 23 Jul 2013 21:23:45 +0000 (00:23 +0300)]
extract init_config() helper method
scribu [Tue, 23 Jul 2013 21:02:35 +0000 (00:02 +0300)]
show synopsis for incomplete commands, even without a WP install
scribu [Tue, 23 Jul 2013 19:57:52 +0000 (22:57 +0300)]
move find_command_to_run() method to WP_CLI\Runner
the WP_CLI class should be a simple facade, with only public methods
scribu [Tue, 23 Jul 2013 20:18:30 +0000 (23:18 +0300)]
add comment above apparently unnecessary load_command() call
scribu [Tue, 23 Jul 2013 19:03:53 +0000 (22:03 +0300)]
clone object instead of calling constructor; fixes #592
scribu [Tue, 23 Jul 2013 15:59:08 +0000 (18:59 +0300)]
don't fail if the site is already installed
scribu [Tue, 23 Jul 2013 00:23:58 +0000 (03:23 +0300)]
add --locale parameter to 'wp core config'. fixes #607
scribu [Fri, 19 Jul 2013 21:35:09 +0000 (00:35 +0300)]
make --title optional for multisite-convert
use the same logic from /wp-admin/network.php
scribu [Fri, 19 Jul 2013 00:19:22 +0000 (03:19 +0300)]
add comment about cURL + tar. see #604
Cristi Burcă [Fri, 19 Jul 2013 00:04:28 +0000 (17:04 -0700)]
Merge pull request #604 from Veered/master
Make wp-cli more Windows compatible
Veered [Thu, 18 Jul 2013 23:42:38 +0000 (16:42 -0700)]
The Windows version of tar doesn't play nicely with pipes. This way is more cross-platform.
Veered [Thu, 18 Jul 2013 22:36:46 +0000 (15:36 -0700)]
Allow paths with spaces.
scribu [Thu, 18 Jul 2013 20:53:30 +0000 (23:53 +0300)]
add docs for 'core multisite-install'
scribu [Wed, 17 Jul 2013 19:12:51 +0000 (22:12 +0300)]
account for already defined multisite constants
scribu [Wed, 17 Jul 2013 01:29:27 +0000 (04:29 +0300)]
behat: remove mismatched URL
scribu [Wed, 17 Jul 2013 01:08:06 +0000 (04:08 +0300)]
define COOKIEHASH to get rid of DB warning
That's because wp_cookie_constants() goes looking for siteurl in the
not-yet-existing wp_sitemeta table.
scribu [Wed, 17 Jul 2013 01:02:37 +0000 (04:02 +0300)]
get rid of some DB warnings
scribu [Wed, 17 Jul 2013 00:41:36 +0000 (03:41 +0300)]
move docs for multisite-convert
scribu [Wed, 17 Jul 2013 00:36:23 +0000 (03:36 +0300)]
move set_url_params() to WP_CLI\Runner
It wasn't really meant to be a public utility. We just didn't have a
runner class back then.
scribu [Wed, 17 Jul 2013 00:29:13 +0000 (03:29 +0300)]
fix edge case in guess_url()
scribu [Wed, 17 Jul 2013 00:19:22 +0000 (03:19 +0300)]
fake $current_site and $current_blog globals
scribu [Tue, 16 Jul 2013 23:34:18 +0000 (02:34 +0300)]
copy the missing steps from populate_network()
scribu [Wed, 17 Jul 2013 00:18:54 +0000 (03:18 +0300)]
test both with and without multisite constants scenarios
scribu [Tue, 16 Jul 2013 21:40:25 +0000 (00:40 +0300)]
skip ms_site_check() when installing
scribu [Tue, 16 Jul 2013 20:20:28 +0000 (23:20 +0300)]
introduce `wp core multisite-install` (doesn't work yet)
scribu [Mon, 15 Jul 2013 13:25:28 +0000 (16:25 +0300)]
bump version to 0.11.0-alpha2
Cristi Burcă [Sun, 14 Jul 2013 14:10:45 +0000 (07:10 -0700)]
Merge pull request #595 from wp-cli/user-get
Implement `wp user get`
scribu [Sun, 14 Jul 2013 13:38:17 +0000 (16:38 +0300)]
WP_User->to_array() doesn't exist in WP 3.4
scribu [Sun, 14 Jul 2013 13:22:53 +0000 (16:22 +0300)]
behat: align table bars
scribu [Sun, 14 Jul 2013 13:12:37 +0000 (16:12 +0300)]
implement `wp user get`
scribu [Sun, 14 Jul 2013 12:56:46 +0000 (15:56 +0300)]
extract assoc_array_to_table() utility.
Also:
- unset the 'format_content' field; it can be just as long as
'post_content'.
- unset the 'filter' field; it's a runtime value, not persistent data
scribu [Sun, 14 Jul 2013 11:51:54 +0000 (14:51 +0300)]
simplify user test
Cristi Burcă [Sun, 14 Jul 2013 11:05:32 +0000 (04:05 -0700)]
Merge pull request #555 from wp-cli/user-first-arg
`wp user` subcommands should accept `user_login` or `user_id`
scribu [Sun, 14 Jul 2013 11:00:15 +0000 (14:00 +0300)]
don't abort if a user isn't found
scribu [Sun, 14 Jul 2013 10:50:33 +0000 (13:50 +0300)]
rename get_user_from_first_arg() to get_user()
Daniel Bachhuber [Sun, 14 Jul 2013 02:16:21 +0000 (19:16 -0700)]
Merge branch 'user-first-arg' of github.com:wp-cli/wp-cli into user-first-arg
Daniel Bachhuber [Sun, 14 Jul 2013 02:15:37 +0000 (19:15 -0700)]
Update "Generating Users" scenario to accommodate deleting multiple users in one go.
Daniel Bachhuber [Sun, 14 Jul 2013 02:13:12 +0000 (19:13 -0700)]
Merge branch 'master' into user-first-arg
Daniel Bachhuber [Sun, 14 Jul 2013 02:12:00 +0000 (19:12 -0700)]
Update to accommodate scenario when multiple users are passed
See https://github.com/wp-cli/wp-cli/pull/555#discussion_r5179695
scribu [Sat, 13 Jul 2013 15:54:56 +0000 (18:54 +0300)]
add missing docs for `user add-role`; improve docs for `user set-role`
Cristi Burcă [Sat, 13 Jul 2013 15:43:47 +0000 (08:43 -0700)]
Merge pull request #567 from wp-cli/check-version
Check wp-includes/version.php before loading WP
Cristi Burcă [Fri, 12 Jul 2013 01:06:19 +0000 (18:06 -0700)]
Merge pull request #538 from wp-cli/behat-check-stderr
behat: make run_check() check STDERR
scribu [Fri, 12 Jul 2013 00:50:59 +0000 (03:50 +0300)]
behat: hide export warnings
scribu [Thu, 11 Jul 2013 22:24:32 +0000 (01:24 +0300)]
suppress curl download meter if not running interactively
scribu [Fri, 21 Jun 2013 13:02:24 +0000 (16:02 +0300)]
don't show progress bar if not in a TTY
this fixes 'tput: No value for $TERM and no -T specified' error
scribu [Fri, 21 Jun 2013 13:36:39 +0000 (16:36 +0300)]
behat: fix `user generate` test
scribu [Thu, 11 Jul 2013 23:56:53 +0000 (02:56 +0300)]
behat: no-op wp_mail()
scribu [Fri, 21 Jun 2013 11:19:38 +0000 (14:19 +0300)]
behat: make run_check() check STDERR
scribu [Thu, 11 Jul 2013 22:19:38 +0000 (01:19 +0300)]
rename _download() to _read() to make it clearer that it doesn't deal with binary data
scribu [Thu, 11 Jul 2013 20:51:12 +0000 (23:51 +0300)]
media: make the temp file have the proper extension from the start
scribu [Thu, 11 Jul 2013 21:04:47 +0000 (00:04 +0300)]
media: don't call get_post() if --post_id isn't even passed
scribu [Thu, 11 Jul 2013 20:26:53 +0000 (23:26 +0300)]
code formatting fixes in media.php
jmslbam [Thu, 11 Jul 2013 18:54:56 +0000 (20:54 +0200)]
Fix notices no index featured_image
Cristi Burcă [Wed, 10 Jul 2013 12:01:47 +0000 (05:01 -0700)]
Merge pull request #476 from wp-cli/force-install-476
Support for `--force` flag when installing plugins or themes
scribu [Wed, 10 Jul 2013 11:15:29 +0000 (14:15 +0300)]
simplify logic for theme and plugin installs
scribu [Mon, 8 Jul 2013 22:19:52 +0000 (01:19 +0300)]
leverage 'clear_destination' parameter from WP_Upgrader
scribu [Mon, 8 Jul 2013 18:43:31 +0000 (21:43 +0300)]
Merge branch 'master' into force-install
scribu [Mon, 8 Jul 2013 18:23:35 +0000 (21:23 +0300)]
theme: parse_name() only needs the first argument
scribu [Mon, 8 Jul 2013 18:07:10 +0000 (21:07 +0300)]
plugin: parse_name() only needs the first arg and only needs to return
the filename.
It accepted the whole arguments initially because it used to check if
the slug was missing. This is handled by the synopsis validator now,
beforehand.
scribu [Mon, 8 Jul 2013 17:36:13 +0000 (20:36 +0300)]
make parse_name a private function, since it's not used in CommandWithUpgrade
also, each implementation returns different things
scribu [Mon, 8 Jul 2013 15:56:14 +0000 (18:56 +0300)]
document --force flag
scribu [Mon, 8 Jul 2013 15:51:58 +0000 (18:51 +0300)]
replace --yes with --force
Cristi Burcă [Mon, 8 Jul 2013 10:37:37 +0000 (03:37 -0700)]
Merge pull request #576 from eugeneware/fix_core_init_tests
don't hard code localhost in wp core init-tests
Eugene Ware [Mon, 8 Jul 2013 10:32:57 +0000 (20:32 +1000)]
fix travis.yml
Daniel Bachhuber [Mon, 8 Jul 2013 09:49:41 +0000 (10:49 +0100)]
Merge branch 'master' into force-install-476
Conflicts:
features/theme.feature
php/commands/plugin.php
php/commands/theme.php
Eugene Ware [Mon, 8 Jul 2013 09:48:16 +0000 (19:48 +1000)]
ioption fixes
Daniel Bachhuber [Mon, 8 Jul 2013 09:44:47 +0000 (10:44 +0100)]
Force install Akismet, as it comes with a default WordPress install.
Eugene Ware [Mon, 8 Jul 2013 08:15:03 +0000 (18:15 +1000)]
remove :
Eugene Ware [Mon, 8 Jul 2013 08:11:38 +0000 (18:11 +1000)]
ternary -> if else
scribu [Mon, 8 Jul 2013 08:06:30 +0000 (11:06 +0300)]
add comments to examples for plugin/theme install
see #581
Cristi Burcă [Mon, 8 Jul 2013 08:02:08 +0000 (01:02 -0700)]
Merge pull request #581 from om4james/zipfiles
Bug fix: allow plugins and themes to be installed from zip file URLs that contain GET parameters
James Collins [Mon, 8 Jul 2013 07:55:25 +0000 (17:55 +1000)]
man-src updates for #581
James Collins [Mon, 8 Jul 2013 07:32:01 +0000 (17:32 +1000)]
behat: upgradables comment updates
James Collins [Mon, 8 Jul 2013 00:21:17 +0000 (10:21 +1000)]
Merge branch 'master' into zipfiles
Conflicts:
features/steps/basic_steps.php
James Collins [Sun, 7 Jul 2013 23:54:53 +0000 (09:54 +1000)]
behat: Convert duplicate plugin/theme tests to scenario outlines
Converts the plugin/theme tests added in
e749f71 to Behat's scenario outlines (http://docs.behat.org/guides/1.gherkin.html#scenario-outlines), which removes test duplication.
vendor/bin/behat features/upgradables.feature --expand
James Collins [Sun, 7 Jul 2013 23:10:08 +0000 (09:10 +1000)]
Merge remote-tracking branch 'upstream/master' into zipfiles
Changes: https://github.com/wp-cli/wp-cli/compare/
fbaab715...498fb6
behat: replace 'a large image file' step with a more generic and explicit 'download' step
Daniel Bachhuber [Sun, 7 Jul 2013 19:08:12 +0000 (20:08 +0100)]
Update stories to support
b07154e. Behat isn't working properly on my local machine bcause of my shoddy connection, so let's see if this passes in Travis
Daniel Bachhuber [Sun, 7 Jul 2013 17:58:02 +0000 (18:58 +0100)]
If a plugin or theme is already installed and the `--version` parameter is used, prompt the user to confirm they'd like it installed.
See https://github.com/wp-cli/wp-cli/pull/476#issuecomment-
20354895
scribu [Sat, 6 Jul 2013 21:10:58 +0000 (23:10 +0200)]
behat: remove var_dump()
scribu [Sat, 6 Jul 2013 20:58:07 +0000 (22:58 +0200)]
behat: rename some helper methods
scribu [Sat, 6 Jul 2013 20:56:10 +0000 (22:56 +0200)]
behat: remove get_path() helper method
scribu [Sat, 6 Jul 2013 20:45:14 +0000 (22:45 +0200)]
behat: convert install_dir private property to RUN_DIR variable
scribu [Sat, 6 Jul 2013 20:34:41 +0000 (22:34 +0200)]
behat: replace 'a large image file' step with a more generic and explicit 'download' step