OSDN Git Service

wvm/wvm.git
10 years agobump version to 0.11.1-alpha
scribu [Tue, 6 Aug 2013 23:55:27 +0000 (02:55 +0300)]
bump version to 0.11.1-alpha

10 years agoMerge pull request #634 from wp-cli/fix-634
Cristi Burcă [Tue, 6 Aug 2013 23:54:29 +0000 (16:54 -0700)]
Merge pull request #634 from wp-cli/fix-634

Bug: `wp option update blog_public` produces error

10 years agooption update: use non-strict comparison
scribu [Tue, 6 Aug 2013 23:26:41 +0000 (02:26 +0300)]
option update: use non-strict comparison

10 years agoadd test for #634
scribu [Tue, 6 Aug 2013 23:35:23 +0000 (02:35 +0300)]
add test for #634

10 years agoMerge pull request #645 from wp-cli/fix-645
Cristi Burcă [Tue, 6 Aug 2013 23:17:12 +0000 (16:17 -0700)]
Merge pull request #645 from wp-cli/fix-645

Commands added by plugins aren't listed in `wp help`

10 years agoshow commands defined in plugins when running 'wp help'
scribu [Tue, 6 Aug 2013 22:39:37 +0000 (01:39 +0300)]
show commands defined in plugins when running 'wp help'

10 years agoadd regression test for #645
scribu [Tue, 6 Aug 2013 21:47:19 +0000 (00:47 +0300)]
add regression test for #645

10 years agointroduce WP_CLI_PHP_ARGS environment variable
scribu [Tue, 6 Aug 2013 10:38:35 +0000 (13:38 +0300)]
introduce WP_CLI_PHP_ARGS environment variable

also, remove old Drush code for looking up php.ini files

fixes #631

10 years agocolorize update candidates. fixes #638
scribu [Tue, 6 Aug 2013 00:06:02 +0000 (03:06 +0300)]
colorize update candidates. fixes #638

10 years agoMerge pull request #632 from wp-cli/cpt-post-types-notices-fix
Cristi Burcă [Mon, 5 Aug 2013 22:38:48 +0000 (15:38 -0700)]
Merge pull request #632 from wp-cli/cpt-post-types-notices-fix

Fix notices undefined index post_types when scaffolding CPT

10 years agoMerge pull request #633 from wp-cli/fix-633
Cristi Burcă [Mon, 5 Aug 2013 22:33:07 +0000 (15:33 -0700)]
Merge pull request #633 from wp-cli/fix-633

Bug: `wp plugin install` installs a plugin when it shouldn't

10 years agouse $p_value instead of $p_name for positional parameters
scribu [Mon, 5 Aug 2013 22:18:32 +0000 (01:18 +0300)]
use $p_value instead of $p_name for positional parameters

10 years agoMove `--post_types` to taxonomy function
jmslbam [Mon, 5 Aug 2013 21:54:35 +0000 (23:54 +0200)]
Move `--post_types` to taxonomy function

Because a CPT doesn't need this arg.

10 years agoadd unit test for #633
scribu [Mon, 5 Aug 2013 20:09:15 +0000 (23:09 +0300)]
add unit test for #633

It's better to test for the specific bug, when possible.

This reverts commit d6287f7622ec71653ec0d5b4e52a8b4992183e0c.

10 years agoadd regression test
scribu [Mon, 5 Aug 2013 19:59:21 +0000 (22:59 +0300)]
add regression test

10 years agoFix notices undefined index post_types when scaffolding CPT
jmslbam [Mon, 5 Aug 2013 13:50:29 +0000 (15:50 +0200)]
Fix notices undefined index post_types when scaffolding CPT

Added post_type default value and use $control_args because it it won't be available in $vars

10 years agocontrib-list: don't show names starting with upper-case before others
scribu [Mon, 5 Aug 2013 00:02:13 +0000 (03:02 +0300)]
contrib-list: don't show names starting with upper-case before others

10 years agocontrib-list: fix githubify function
scribu [Sun, 4 Aug 2013 23:59:46 +0000 (02:59 +0300)]
contrib-list: fix githubify function

10 years ago0.11.0 final v0.11.0
scribu [Sun, 4 Aug 2013 23:54:31 +0000 (02:54 +0300)]
0.11.0 final

10 years agomake Rewrite_Command::apache_modules() private
scribu [Sun, 4 Aug 2013 21:47:00 +0000 (00:47 +0300)]
make Rewrite_Command::apache_modules() private

other code has no business calling it

10 years agoadd new contributors since 0.10
scribu [Sun, 4 Aug 2013 20:55:18 +0000 (23:55 +0300)]
add new contributors since 0.10

10 years agoadd shortdesc for 'wp cli' subcommands
scribu [Sun, 4 Aug 2013 20:31:46 +0000 (23:31 +0300)]
add shortdesc for 'wp cli' subcommands

10 years agoupdate to Mustache 2.4
scribu [Sun, 4 Aug 2013 19:37:12 +0000 (22:37 +0300)]
update to Mustache 2.4

10 years agobump version to 0.11.0-beta
scribu [Sun, 4 Aug 2013 19:14:15 +0000 (22:14 +0300)]
bump version to 0.11.0-beta

10 years agoMerge pull request #552 from wp-cli/help-pager
Cristi Burcă [Sun, 4 Aug 2013 19:11:36 +0000 (12:11 -0700)]
Merge pull request #552 from wp-cli/help-pager

Make `wp help` use a pager

10 years agohelp: remove unused find() utility
scribu [Sun, 4 Aug 2013 18:55:12 +0000 (21:55 +0300)]
help: remove unused find() utility

10 years agoalways pass docs through WP_CLI::colorize()
scribu [Sun, 4 Aug 2013 18:53:35 +0000 (21:53 +0300)]
always pass docs through WP_CLI::colorize()

10 years agoMerge branch 'master' into help-pager
scribu [Sun, 4 Aug 2013 18:50:17 +0000 (21:50 +0300)]
Merge branch 'master' into help-pager

(should fix unrelated build errors)

10 years agoremove buggy code that tries to use `more` for paging `wp help`
scribu [Sun, 4 Aug 2013 18:40:23 +0000 (21:40 +0300)]
remove buggy code that tries to use `more` for paging `wp help`

* Windows throws an unexpected exit status when trying to use `less`
* more doesn't have an '-r' flag

10 years agoMerge pull request #551 from wp-cli/inline-docs
Cristi Burcă [Sun, 4 Aug 2013 18:13:02 +0000 (11:13 -0700)]
Merge pull request #551 from wp-cli/inline-docs

Replace WP_CLI::add_man_dir() with something better

10 years agoescape "*/" sequence in media.php
scribu [Sun, 4 Aug 2013 15:16:14 +0000 (18:16 +0300)]
escape "*/" sequence in media.php

10 years agomove docs from man-src/ into PHPDoc comments
scribu [Sun, 4 Aug 2013 14:12:08 +0000 (17:12 +0300)]
move docs from man-src/ into PHPDoc comments

10 years agoconvert-docs.php: indentation fixes
scribu [Sun, 4 Aug 2013 13:45:28 +0000 (16:45 +0300)]
convert-docs.php: indentation fixes

10 years agoadd extra newline if longdesc exists
scribu [Sun, 4 Aug 2013 13:39:07 +0000 (16:39 +0300)]
add extra newline if longdesc exists

10 years agodeprecate WP_CLI::add_man_dir()
scribu [Sun, 4 Aug 2013 13:27:56 +0000 (16:27 +0300)]
deprecate WP_CLI::add_man_dir()

10 years agoMerge pull request #629 from johnbillion/plugin-feedback
Cristi Burcă [Sun, 4 Aug 2013 17:53:46 +0000 (10:53 -0700)]
Merge pull request #629 from johnbillion/plugin-feedback

Clearer confirmation message when network-activating plugins

10 years agoClearer confirmation message when network-activating plugins
John Blackbourn [Sun, 4 Aug 2013 15:11:14 +0000 (16:11 +0100)]
Clearer confirmation message when network-activating plugins

10 years agoconvert tabs to spaces only when displaying in the CLI
scribu [Sun, 4 Aug 2013 13:17:25 +0000 (16:17 +0300)]
convert tabs to spaces only when displaying in the CLI

10 years agoadd test for multiline excerpt. see #624
scribu [Thu, 1 Aug 2013 22:38:57 +0000 (01:38 +0300)]
add test for multiline excerpt. see #624

10 years agoreplace get_extra_markdown() with get_longdesc()
scribu [Thu, 1 Aug 2013 21:57:32 +0000 (00:57 +0300)]
replace get_extra_markdown() with get_longdesc()

10 years agoDocParser: implement get_longdesc()
scribu [Thu, 1 Aug 2013 20:48:38 +0000 (23:48 +0300)]
DocParser: implement get_longdesc()

10 years agoDocParser: return empty string instead of false
scribu [Thu, 1 Aug 2013 20:45:01 +0000 (23:45 +0300)]
DocParser: return empty string instead of false

10 years agoDocParser: remove decorations before processing
scribu [Thu, 1 Aug 2013 20:18:57 +0000 (23:18 +0300)]
DocParser: remove decorations before processing

10 years agoSupport multi-line argument values (#624)
Dan Gardner [Thu, 1 Aug 2013 20:09:16 +0000 (21:09 +0100)]
Support multi-line argument values (#624)

10 years agoadd a few unit tests for DocParser
scribu [Thu, 1 Aug 2013 20:08:40 +0000 (23:08 +0300)]
add a few unit tests for DocParser

10 years agopass string to DocParser (makes it easier to unit test)
scribu [Thu, 1 Aug 2013 19:40:34 +0000 (22:40 +0300)]
pass string to DocParser (makes it easier to unit test)

10 years agomake `wp help` read intermediary format
scribu [Thu, 1 Aug 2013 14:42:40 +0000 (17:42 +0300)]
make `wp help` read intermediary format

10 years agointroduce utils/convert-docs.php script
scribu [Thu, 1 Aug 2013 13:46:56 +0000 (16:46 +0300)]
introduce utils/convert-docs.php script

10 years agoremove unnecessary temporary variable
scribu [Thu, 1 Aug 2013 00:49:25 +0000 (03:49 +0300)]
remove unnecessary temporary variable

10 years agodon't return 'filter' object in `wp post get --format=json`
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

10 years agogiving credit where credit is due
scribu [Wed, 31 Jul 2013 16:59:02 +0000 (19:59 +0300)]
giving credit where credit is due

10 years agoremove 'Need even more info' section
scribu [Wed, 31 Jul 2013 16:54:12 +0000 (19:54 +0300)]
remove 'Need even more info' section

10 years agoRevert "remove redundant array_filter() around preg_split()"
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.

10 years agoremove redundant array_filter() around preg_split()
scribu [Tue, 30 Jul 2013 01:54:32 +0000 (04:54 +0300)]
remove redundant array_filter() around preg_split()

10 years agoignore repeating parameters in enough_positionals()
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)

10 years agoRewrite SynopsisParser to support optional values for assoc parameters.
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

10 years agointroduce SynopsisValidator class
scribu [Tue, 30 Jul 2013 00:55:57 +0000 (03:55 +0300)]
introduce SynopsisValidator class

10 years agoadd some Behat tests for `wp user *-role`
scribu [Sun, 28 Jul 2013 16:42:13 +0000 (19:42 +0300)]
add some Behat tests for `wp user *-role`

see #594

10 years agomake `wp user get` show roles
scribu [Sat, 27 Jul 2013 22:05:01 +0000 (01:05 +0300)]
make `wp user get` show roles

fixes #616

10 years agoallow WP_CLI::error() to do its thing
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)

10 years agoMerge pull request #598 from wp-cli/multisite-install
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

10 years agofix indentation in .travis.yml
scribu [Wed, 24 Jul 2013 11:43:48 +0000 (14:43 +0300)]
fix indentation in .travis.yml

10 years agomerge master into multisite-install branch
scribu [Tue, 23 Jul 2013 23:16:24 +0000 (02:16 +0300)]
merge master into multisite-install branch

10 years agoMerge pull request #603 from wp-cli/fix-603
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

10 years agoextract init_config() helper method
scribu [Tue, 23 Jul 2013 21:23:45 +0000 (00:23 +0300)]
extract init_config() helper method

10 years agoshow synopsis for incomplete commands, even without a WP install
scribu [Tue, 23 Jul 2013 21:02:35 +0000 (00:02 +0300)]
show synopsis for incomplete commands, even without a WP install

10 years agomove find_command_to_run() method to WP_CLI\Runner
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

10 years agoadd comment above apparently unnecessary load_command() call
scribu [Tue, 23 Jul 2013 20:18:30 +0000 (23:18 +0300)]
add comment above apparently unnecessary load_command() call

10 years agoclone object instead of calling constructor; fixes #592
scribu [Tue, 23 Jul 2013 19:03:53 +0000 (22:03 +0300)]
clone object instead of calling constructor; fixes #592

10 years agodon't fail if the site is already installed
scribu [Tue, 23 Jul 2013 15:59:08 +0000 (18:59 +0300)]
don't fail if the site is already installed

10 years agoadd --locale parameter to 'wp core config'. fixes #607
scribu [Tue, 23 Jul 2013 00:23:58 +0000 (03:23 +0300)]
add --locale parameter to 'wp core config'. fixes #607

11 years agomake --title optional for multisite-convert
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

11 years agoadd comment about cURL + tar. see #604
scribu [Fri, 19 Jul 2013 00:19:22 +0000 (03:19 +0300)]
add comment about cURL + tar. see #604

11 years agoMerge pull request #604 from Veered/master
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

11 years agoThe Windows version of tar doesn't play nicely with pipes. This way is more cross...
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.

11 years agoAllow paths with spaces.
Veered [Thu, 18 Jul 2013 22:36:46 +0000 (15:36 -0700)]
Allow paths with spaces.

11 years agoadd docs for 'core multisite-install'
scribu [Thu, 18 Jul 2013 20:53:30 +0000 (23:53 +0300)]
add docs for 'core multisite-install'

11 years agoaccount for already defined multisite constants
scribu [Wed, 17 Jul 2013 19:12:51 +0000 (22:12 +0300)]
account for already defined multisite constants

11 years agobehat: remove mismatched URL
scribu [Wed, 17 Jul 2013 01:29:27 +0000 (04:29 +0300)]
behat: remove mismatched URL

11 years agodefine COOKIEHASH to get rid of DB warning
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.

11 years agoget rid of some DB warnings
scribu [Wed, 17 Jul 2013 01:02:37 +0000 (04:02 +0300)]
get rid of some DB warnings

11 years agomove docs for multisite-convert
scribu [Wed, 17 Jul 2013 00:41:36 +0000 (03:41 +0300)]
move docs for multisite-convert

11 years agomove set_url_params() to WP_CLI\Runner
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.

11 years agofix edge case in guess_url()
scribu [Wed, 17 Jul 2013 00:29:13 +0000 (03:29 +0300)]
fix edge case in guess_url()

11 years agofake $current_site and $current_blog globals
scribu [Wed, 17 Jul 2013 00:19:22 +0000 (03:19 +0300)]
fake $current_site and $current_blog globals

11 years agocopy the missing steps from populate_network()
scribu [Tue, 16 Jul 2013 23:34:18 +0000 (02:34 +0300)]
copy the missing steps from populate_network()

11 years agotest both with and without multisite constants scenarios
scribu [Wed, 17 Jul 2013 00:18:54 +0000 (03:18 +0300)]
test both with and without multisite constants scenarios

11 years agoskip ms_site_check() when installing
scribu [Tue, 16 Jul 2013 21:40:25 +0000 (00:40 +0300)]
skip ms_site_check() when installing

11 years agointroduce `wp core multisite-install` (doesn't work yet)
scribu [Tue, 16 Jul 2013 20:20:28 +0000 (23:20 +0300)]
introduce `wp core multisite-install` (doesn't work yet)

11 years agobump version to 0.11.0-alpha2
scribu [Mon, 15 Jul 2013 13:25:28 +0000 (16:25 +0300)]
bump version to 0.11.0-alpha2

11 years agoMerge pull request #595 from wp-cli/user-get
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`

11 years agoWP_User->to_array() doesn't exist in WP 3.4
scribu [Sun, 14 Jul 2013 13:38:17 +0000 (16:38 +0300)]
WP_User->to_array() doesn't exist in WP 3.4

11 years agobehat: align table bars
scribu [Sun, 14 Jul 2013 13:22:53 +0000 (16:22 +0300)]
behat: align table bars

11 years agoimplement `wp user get`
scribu [Sun, 14 Jul 2013 13:12:37 +0000 (16:12 +0300)]
implement `wp user get`

11 years agoextract assoc_array_to_table() utility.
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

11 years agosimplify user test
scribu [Sun, 14 Jul 2013 11:51:54 +0000 (14:51 +0300)]
simplify user test

11 years agoMerge pull request #555 from wp-cli/user-first-arg
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`

11 years agodon't abort if a user isn't found
scribu [Sun, 14 Jul 2013 11:00:15 +0000 (14:00 +0300)]
don't abort if a user isn't found

11 years agorename get_user_from_first_arg() to get_user()
scribu [Sun, 14 Jul 2013 10:50:33 +0000 (13:50 +0300)]
rename get_user_from_first_arg() to get_user()

11 years agoMerge branch 'user-first-arg' of github.com:wp-cli/wp-cli into user-first-arg
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