OSDN Git Service

wvm/wvm.git
11 years agobehat: add aditional args if command merely starts with a given string
scribu [Wed, 29 May 2013 23:04:50 +0000 (02:04 +0300)]
behat: add aditional args if command merely starts with a given string

11 years agobehat: move utility functions to separate file
scribu [Wed, 29 May 2013 22:20:35 +0000 (01:20 +0300)]
behat: move utility functions to separate file

11 years agocontributing: clarify workflow
scribu [Wed, 29 May 2013 19:42:03 +0000 (22:42 +0300)]
contributing: clarify workflow

11 years agoMerge pull request #479 from wp-cli/behat-env
Cristi Burcă [Wed, 29 May 2013 17:52:03 +0000 (10:52 -0700)]
Merge pull request #479 from wp-cli/behat-env

behat: separate tests that require the `ronn` gem

11 years agotravis: set WITH_RONN env variable
scribu [Wed, 29 May 2013 17:20:08 +0000 (20:20 +0300)]
travis: set WITH_RONN env variable

Also, tag behat tests that depend on the ronn gem.

We don't care too much about which WP version is installed, so run the
ronn tests only once.

11 years agotravis: move main script to separate file
scribu [Wed, 29 May 2013 17:12:54 +0000 (20:12 +0300)]
travis: move main script to separate file

11 years agotravis: move init script to separate file
scribu [Wed, 29 May 2013 17:00:24 +0000 (20:00 +0300)]
travis: move init script to separate file

11 years agobehat: change subprocess PATH, instead of creating a function
scribu [Wed, 29 May 2013 16:41:29 +0000 (19:41 +0300)]
behat: change subprocess PATH, instead of creating a function

see #475

11 years agoMerge pull request #475 from wp-cli/behat-alias
Cristi Burcă [Tue, 28 May 2013 12:55:27 +0000 (05:55 -0700)]
Merge pull request #475 from wp-cli/behat-alias

behat: allow inner calls to `wp`

11 years agobehat: don't hardcode `wp ` in the step definitions
scribu [Tue, 28 May 2013 00:38:41 +0000 (03:38 +0300)]
behat: don't hardcode `wp ` in the step definitions

11 years agobehat: use bash function to allow inner calls to `wp`
scribu [Tue, 28 May 2013 00:03:41 +0000 (03:03 +0300)]
behat: use bash function to allow inner calls to `wp`

(bash aliases seem to be available only in interactive mode)

11 years agoMerge pull request #474 from wp-cli/scaffold-inversion
Cristi Burcă [Mon, 27 May 2013 23:18:48 +0000 (16:18 -0700)]
Merge pull request #474 from wp-cli/scaffold-inversion

Make `wp plugin scaffold` work

11 years agoalias `wp plugin scaffold` to `wp scaffold plugin`
scribu [Mon, 27 May 2013 23:03:55 +0000 (02:03 +0300)]
alias `wp plugin scaffold` to `wp scaffold plugin`

11 years agomake back_compat_conversion() method static
scribu [Mon, 27 May 2013 22:40:57 +0000 (01:40 +0300)]
make back_compat_conversion() method static

11 years agoTableIterator: rename 'limit' parameter to 'chunk_size', so that it's not confused...
scribu [Mon, 27 May 2013 20:37:22 +0000 (23:37 +0300)]
TableIterator: rename 'limit' parameter to 'chunk_size', so that it's not confused with SQL LIMIT

see https://github.com/wp-cli/wp-cli/commit/b1bd56dd5e2bdc106603c1034affc6a953b5e6b1#commitcomment-3296894

11 years agoclarify that only the bash code was copied from drush
scribu [Sun, 26 May 2013 16:57:09 +0000 (19:57 +0300)]
clarify that only the bash code was copied from drush

11 years agoMerge pull request #469 from cyberhobo/tax-scaffold-multiple-cpts
Cristi Burcă [Sat, 25 May 2013 11:29:35 +0000 (04:29 -0700)]
Merge pull request #469 from cyberhobo/tax-scaffold-multiple-cpts

Correct taxonomy scaffold code for multiple post types.

11 years agocombine similar custom taxonomy tests
Dylan Kuhn [Sat, 25 May 2013 01:22:52 +0000 (18:22 -0700)]
combine similar custom taxonomy tests

11 years agoMerge pull request #470 from wp-cli/loggers
Cristi Burcă [Fri, 24 May 2013 23:37:03 +0000 (16:37 -0700)]
Merge pull request #470 from wp-cli/loggers

Move logging functionality to separate classes

11 years agodon't use is_wp_error() in error_to_string()
scribu [Fri, 24 May 2013 23:11:12 +0000 (02:11 +0300)]
don't use is_wp_error() in error_to_string()

We want to be able to use it without WP being installed.

11 years agokeep error_to_string() calls inside WP_CLI
scribu [Fri, 24 May 2013 22:42:56 +0000 (01:42 +0300)]
keep error_to_string() calls inside WP_CLI

They assume WP is loaded, by calling is_wp_error().

11 years agoLoggers\Regular: don't expose $handle parameter
scribu [Fri, 24 May 2013 22:36:07 +0000 (01:36 +0300)]
Loggers\Regular: don't expose $handle parameter

11 years agoadd an EXAMPLES section that features the --post_types parameter
Dylan Kuhn [Fri, 24 May 2013 15:46:13 +0000 (08:46 -0700)]
add an EXAMPLES section that features the --post_types parameter

11 years agoadd back WP_CLI::out(), just to prevent fatal errors
scribu [Fri, 24 May 2013 13:29:23 +0000 (16:29 +0300)]
add back WP_CLI::out(), just to prevent fatal errors

11 years agointroduce WP_CLI\Loggers namespace
scribu [Fri, 24 May 2013 12:43:11 +0000 (15:43 +0300)]
introduce WP_CLI\Loggers namespace

11 years agoRemove unnecessary comment.
Dylan Kuhn [Thu, 23 May 2013 17:49:43 +0000 (10:49 -0700)]
Remove unnecessary comment.

11 years agoRestore accidentally deleted man page.
Dylan Kuhn [Thu, 23 May 2013 17:49:18 +0000 (10:49 -0700)]
Restore accidentally deleted man page.

11 years agoCorrect taxonomy scaffold code for multiple post types.
Dylan Kuhn [Thu, 23 May 2013 17:19:30 +0000 (10:19 -0700)]
Correct taxonomy scaffold code for multiple post types.

11 years agoMerge pull request #462 from wp-cli/mustache-man
Cristi Burcă [Wed, 22 May 2013 18:36:48 +0000 (11:36 -0700)]
Merge pull request #462 from wp-cli/mustache-man

Use Mustache templates for man markdown

11 years agosearch-replace: add test for --skip-columns
scribu [Wed, 22 May 2013 13:04:19 +0000 (16:04 +0300)]
search-replace: add test for --skip-columns

see #464

11 years agosearch-replace: the --dry-run flag should be last
scribu [Wed, 22 May 2013 12:59:50 +0000 (15:59 +0300)]
search-replace: the --dry-run flag should be last

11 years agoMerge pull request #464 from cyberhobo/sr-no-guids
Cristi Burcă [Wed, 22 May 2013 12:57:49 +0000 (05:57 -0700)]
Merge pull request #464 from cyberhobo/sr-no-guids

Add a search-replace option to skip guids.

11 years agoSpecify any columns to be skipped.
Dylan Kuhn [Tue, 21 May 2013 03:57:40 +0000 (20:57 -0700)]
Specify any columns to be skipped.

11 years agoAdd a search-replace option to skip guids.
Dylan Kuhn [Mon, 20 May 2013 23:29:22 +0000 (16:29 -0700)]
Add a search-replace option to skip guids.

11 years agoblog: explain logic behind multisite condition
scribu [Mon, 20 May 2013 15:59:06 +0000 (18:59 +0300)]
blog: explain logic behind multisite condition

The `function_exists( 'add_filter' )` part tests that WordPress is loaded.

11 years agore-generate man pages
scribu [Mon, 20 May 2013 15:13:31 +0000 (18:13 +0300)]
re-generate man pages

11 years agointroduce man.mustache
scribu [Mon, 20 May 2013 14:59:38 +0000 (17:59 +0300)]
introduce man.mustache

11 years agohelp --gen: add test for combined man pages
scribu [Mon, 20 May 2013 14:47:40 +0000 (17:47 +0300)]
help --gen: add test for combined man pages

11 years agoconvert Scaffold_Command->render() to Utils\mustache_render()
scribu [Mon, 20 May 2013 14:31:42 +0000 (17:31 +0300)]
convert Scaffold_Command->render() to Utils\mustache_render()

11 years agoMerge pull request #356 from wp-cli/freeman
Cristi Burcă [Mon, 20 May 2013 14:30:21 +0000 (07:30 -0700)]
Merge pull request #356 from wp-cli/freeman

Generate man pages without a WP install

11 years agomerge man.php into commands/help.php
scribu [Mon, 20 May 2013 14:21:17 +0000 (17:21 +0300)]
merge man.php into commands/help.php

11 years agohelp --gen: add test for third-party commands
scribu [Mon, 20 May 2013 13:53:44 +0000 (16:53 +0300)]
help --gen: add test for third-party commands

11 years agohelp --gen: add test for multisite-only subcommands
scribu [Mon, 20 May 2013 12:56:44 +0000 (15:56 +0300)]
help --gen: add test for multisite-only subcommands

11 years agowp help: update man page
scribu [Mon, 20 May 2013 12:20:49 +0000 (15:20 +0300)]
wp help: update man page

11 years agoconvert `wp --man` to `wp help --gen`
scribu [Mon, 20 May 2013 12:20:07 +0000 (15:20 +0300)]
convert `wp --man` to `wp help --gen`

11 years agodon't attempt to export $COLUMNS
scribu [Sat, 11 May 2013 21:01:10 +0000 (00:01 +0300)]
don't attempt to export $COLUMNS

First of all, it's not used by wp-cli (php-cli-tools calls tput
directly).

Second of all, $COLUMNS is a shell variable, so it wouldn't be available via
PHP's getenv() normally. In other words, calling tput directly is the
correct solution.

11 years agoMerge pull request #461 from wp-cli/post-list
Cristi Burcă [Sun, 19 May 2013 23:10:16 +0000 (16:10 -0700)]
Merge pull request #461 from wp-cli/post-list

post list: show post status by default

11 years agopost create: include --post_date in example
scribu [Sun, 19 May 2013 21:34:04 +0000 (00:34 +0300)]
post create: include --post_date in example

closes #282

11 years agopost list: update man page
scribu [Sun, 19 May 2013 21:20:48 +0000 (00:20 +0300)]
post list: update man page

11 years agopost list: show post status by default
scribu [Sun, 19 May 2013 21:09:59 +0000 (00:09 +0300)]
post list: show post status by default

Yes, we have --fields, but useful defaults matter.

The post status helps to remind users that they might want to filter the list further.

see #422

11 years agoMerge pull request #460 from wp-cli/man-refactor
Cristi Burcă [Sun, 19 May 2013 21:09:29 +0000 (14:09 -0700)]
Merge pull request #460 from wp-cli/man-refactor

Improve man page generation

11 years agohelp: add test for --help
scribu [Sun, 19 May 2013 20:12:01 +0000 (23:12 +0300)]
help: add test for --help

11 years agoremove old db man pages
scribu [Sun, 19 May 2013 20:04:46 +0000 (23:04 +0300)]
remove old db man pages

11 years agocreate empty home.txt file, so that `wp home --man` works
scribu [Sun, 19 May 2013 20:03:13 +0000 (23:03 +0300)]
create empty home.txt file, so that `wp home --man` works

11 years agocreate empty help.txt file, so that `wp help --man` works
scribu [Sun, 19 May 2013 19:59:07 +0000 (22:59 +0300)]
create empty help.txt file, so that `wp help --man` works

11 years agoreduce code duplication by merging show_help_early() into Help_Command
scribu [Sun, 19 May 2013 19:51:30 +0000 (22:51 +0300)]
reduce code duplication by merging show_help_early() into Help_Command

11 years agomove --man handling to _run_command() so that `wp db --man` works
scribu [Sun, 19 May 2013 19:29:07 +0000 (22:29 +0300)]
move --man handling to _run_command() so that `wp db --man` works

11 years agorename InternalAssoc to InternalFlags
scribu [Sun, 19 May 2013 19:22:10 +0000 (22:22 +0300)]
rename InternalAssoc to InternalFlags

'flags' is more descriptive than 'assoc'

11 years agoMerge pull request #452 from wp-cli/tests-cleanup
Cristi Burcă [Sun, 19 May 2013 19:12:57 +0000 (12:12 -0700)]
Merge pull request #452 from wp-cli/tests-cleanup

Remove temporary files after succesfully running tests

11 years agobehat: remove temp files for scenarios that don't have failing steps
scribu [Sun, 19 May 2013 19:06:20 +0000 (22:06 +0300)]
behat: remove temp files for scenarios that don't have failing steps

11 years agoMerge pull request #459 from wp-cli/json-format
Cristi Burcă [Sun, 19 May 2013 18:33:15 +0000 (11:33 -0700)]
Merge pull request #459 from wp-cli/json-format

Convert from --json to --format=json

11 years agounset 'json' key, not 'ids'
scribu [Sun, 19 May 2013 18:23:25 +0000 (21:23 +0300)]
unset 'json' key, not 'ids'

11 years agore-generate man pages
scribu [Sun, 19 May 2013 18:21:09 +0000 (21:21 +0300)]
re-generate man pages

[ci skip]

11 years agouser-meta: add tests
scribu [Sun, 19 May 2013 18:08:39 +0000 (21:08 +0300)]
user-meta: add tests

11 years agobehat: formatting fixes
scribu [Sun, 19 May 2013 18:07:11 +0000 (21:07 +0300)]
behat: formatting fixes

11 years agobehat: work around bug in WP 3.4.2 related to serializing custom fields
scribu [Sun, 19 May 2013 18:06:55 +0000 (21:06 +0300)]
behat: work around bug in WP 3.4.2 related to serializing custom fields

11 years agounlike `wp option`, `wp post-meta` outputs confirmation messages
scribu [Sun, 19 May 2013 16:57:52 +0000 (19:57 +0300)]
unlike `wp option`, `wp post-meta` outputs confirmation messages

11 years agosave parent class in Subcommand
scribu [Sun, 19 May 2013 16:52:23 +0000 (19:52 +0300)]
save parent class in Subcommand

ReflectionMethod only stores the name of the original class, which might
be abstract.

11 years agoadd --format parameter to meta get and update
scribu [Sun, 19 May 2013 16:40:31 +0000 (19:40 +0300)]
add --format parameter to meta get and update

11 years agopost-meta: add tests
scribu [Sat, 18 May 2013 16:16:57 +0000 (19:16 +0300)]
post-meta: add tests

11 years agooption: add tests
scribu [Sat, 18 May 2013 16:04:42 +0000 (19:04 +0300)]
option: add tests

11 years agotransparently convert from --json to --format=json
scribu [Sat, 18 May 2013 15:35:43 +0000 (18:35 +0300)]
transparently convert from --json to --format=json

11 years agopost get: default to table format. see #399
scribu [Sat, 18 May 2013 15:28:56 +0000 (18:28 +0300)]
post get: default to table format. see #399

11 years agoMerge pull request #458 from wp-cli/core-version-check
Cristi Burcă [Sat, 18 May 2013 14:22:43 +0000 (07:22 -0700)]
Merge pull request #458 from wp-cli/core-version-check

Update to /version-check/1.6/

11 years agocore download: update to /version-check/1.6/
scribu [Sat, 18 May 2013 14:13:40 +0000 (17:13 +0300)]
core download: update to /version-check/1.6/

11 years agotest wp core download --locale
scribu [Sat, 18 May 2013 13:31:23 +0000 (16:31 +0300)]
test wp core download --locale

11 years agotravis: make Behat output less verbose
scribu [Sat, 18 May 2013 13:38:13 +0000 (16:38 +0300)]
travis: make Behat output less verbose

11 years agoMerge pull request #451 from wp-cli/behat-refactor
Cristi Burcă [Tue, 14 May 2013 22:06:07 +0000 (15:06 -0700)]
Merge pull request #451 from wp-cli/behat-refactor

Get rid of "Then it should run without errors" step

11 years agotry the --activate flag for `wp scaffold plugin` one more time
scribu [Tue, 14 May 2013 21:11:50 +0000 (00:11 +0300)]
try the --activate flag for `wp scaffold plugin` one more time

11 years agobehat: move plugin dir acquiring to the 'Given' block
scribu [Tue, 14 May 2013 20:59:55 +0000 (23:59 +0300)]
behat: move plugin dir acquiring to the 'Given' block

11 years agobehat: more misc fixes
scribu [Tue, 14 May 2013 20:46:09 +0000 (23:46 +0300)]
behat: more misc fixes

11 years agobehat: move theme dir acquiring to the 'Given' block
scribu [Tue, 14 May 2013 20:44:07 +0000 (23:44 +0300)]
behat: move theme dir acquiring to the 'Given' block

11 years agobehat: misc fixes
scribu [Tue, 14 May 2013 20:35:46 +0000 (23:35 +0300)]
behat: misc fixes

11 years agobehat: fix theme test
scribu [Tue, 14 May 2013 19:14:42 +0000 (22:14 +0300)]
behat: fix theme test

11 years agodon't create a new test dir if one already exists
scribu [Tue, 14 May 2013 18:55:03 +0000 (21:55 +0300)]
don't create a new test dir if one already exists

this allows having nested WP installs

11 years agoadd success message for `wp theme delete`
scribu [Tue, 14 May 2013 13:28:41 +0000 (16:28 +0300)]
add success message for `wp theme delete`

11 years agobehat: remove "it should run without errors" step
scribu [Tue, 14 May 2013 13:14:22 +0000 (16:14 +0300)]
behat: remove "it should run without errors" step

introduce "try `cmd`" steps.

11 years agoMerge pull request #444 from wp-cli/scaffold-tests
Cristi Burcă [Tue, 14 May 2013 11:17:54 +0000 (04:17 -0700)]
Merge pull request #444 from wp-cli/scaffold-tests

Some scaffold tests

11 years agobehat: reorganize common cpt and tax setup
scribu [Tue, 14 May 2013 11:08:41 +0000 (14:08 +0300)]
behat: reorganize common cpt and tax setup

11 years agoAdded plugin_name arg
jmslbam [Mon, 13 May 2013 20:54:23 +0000 (22:54 +0200)]
Added plugin_name arg

11 years agoSplit up plugin activation
jmslbam [Mon, 13 May 2013 20:45:36 +0000 (22:45 +0200)]
Split up plugin activation

11 years agoMerge branch 'fix-447'
scribu [Mon, 13 May 2013 11:11:20 +0000 (14:11 +0300)]
Merge branch 'fix-447'

11 years agoPlugin scaffold typo fix for Behat test
Jaime Martinez [Mon, 13 May 2013 07:26:51 +0000 (09:26 +0200)]
Plugin scaffold typo fix for Behat test

11 years agoAdded scaffold plugin activation test
jmslbam [Sun, 12 May 2013 23:11:11 +0000 (01:11 +0200)]
Added scaffold plugin activation test

11 years agoAdded behat test for plugin scaffolding
jmslbam [Sun, 12 May 2013 22:58:12 +0000 (00:58 +0200)]
Added behat test for plugin scaffolding

11 years agoAdded tags
jmslbam [Sun, 12 May 2013 22:52:13 +0000 (00:52 +0200)]
Added tags

11 years agoAdded child-theme behat test
jmslbam [Sun, 12 May 2013 22:29:45 +0000 (00:29 +0200)]
Added child-theme behat test

11 years agoAdded trailing slash to WP_CONTENT_DIR Fixes #446
jmslbam [Sun, 12 May 2013 21:05:21 +0000 (23:05 +0200)]
Added trailing slash to WP_CONTENT_DIR Fixes #446

11 years agoMerged CPT and Tax test
jmslbam [Sun, 12 May 2013 21:02:20 +0000 (23:02 +0200)]
Merged CPT and Tax test

11 years agoMerge pull request #449 from wp-cli/verbose-export
Cristi Burcă [Sun, 12 May 2013 16:42:33 +0000 (09:42 -0700)]
Merge pull request #449 from wp-cli/verbose-export

Introduce `wp export --verbose`