OSDN Git Service

wvm/wvm.git
11 years agoRename wp blog truncate to wp blog empty
Taylor Lovett [Wed, 24 Apr 2013 13:39:56 +0000 (13:39 +0000)]
Rename wp blog truncate to wp blog empty

11 years agoMove empty blog subcommand to blog command; create separate class for multi-site...
Taylor Lovett [Wed, 24 Apr 2013 04:47:15 +0000 (04:47 +0000)]
Move empty blog subcommand to blog command; create separate class for multi-site commands so that we can make blog available to single site installations

11 years agoMoving empty blog subcommand to blog command
Taylor Lovett [Wed, 24 Apr 2013 04:46:17 +0000 (04:46 +0000)]
Moving empty blog subcommand to blog command

11 years agoChange empty_terms and empty_comments to keep_terms and keep_comments
Taylor Lovett [Mon, 22 Apr 2013 14:04:28 +0000 (14:04 +0000)]
Change empty_terms and empty_comments to keep_terms and keep_comments

11 years agoFix post type argument in comments
Taylor Lovett [Mon, 22 Apr 2013 13:59:42 +0000 (13:59 +0000)]
Fix post type argument in comments

11 years agoUse WP_CLI\Iterators\Query instead of ->get_col
Taylor Lovett [Mon, 22 Apr 2013 13:58:28 +0000 (13:58 +0000)]
Use WP_CLI\Iterators\Query instead of ->get_col

11 years agoRemove empty_options flag
Taylor Lovett [Mon, 22 Apr 2013 00:19:58 +0000 (00:19 +0000)]
Remove empty_options flag

11 years agoRemove some old code [closes #406]
Taylor Lovett [Mon, 22 Apr 2013 00:00:13 +0000 (00:00 +0000)]
Remove some old code [closes #406]

11 years agoAdd empty_blog subcommand to core
Taylor Lovett [Sun, 21 Apr 2013 23:53:29 +0000 (23:53 +0000)]
Add empty_blog subcommand to core

11 years agoMerge pull request #405 from wp-cli/format-ids
Cristi Burcă [Fri, 19 Apr 2013 23:14:31 +0000 (16:14 -0700)]
Merge pull request #405 from wp-cli/format-ids

Add `--ids` support to `wp term list`, but convert `--ids` to `--format=ids`

11 years agouse --format=ids in user.feature
scribu [Fri, 19 Apr 2013 23:01:41 +0000 (02:01 +0300)]
use --format=ids in user.feature

11 years agoupdate `wp post delete` example
scribu [Fri, 19 Apr 2013 23:01:10 +0000 (02:01 +0300)]
update `wp post delete` example

11 years agotransparently convert --ids to --format=ids
scribu [Fri, 19 Apr 2013 22:57:24 +0000 (01:57 +0300)]
transparently convert --ids to --format=ids

this keeps the back-compat code separate from the command implementation

11 years agoUpdate man for `wp post list`
Daniel Bachhuber [Fri, 19 Apr 2013 22:32:16 +0000 (15:32 -0700)]
Update man for `wp post list`

11 years agoConvert `wp post list --ids` to `wp post list --format=ids`
Daniel Bachhuber [Fri, 19 Apr 2013 22:27:20 +0000 (15:27 -0700)]
Convert `wp post list --ids` to `wp post list --format=ids`

11 years agoJSON format test for `wp user list`
Daniel Bachhuber [Fri, 19 Apr 2013 21:43:17 +0000 (14:43 -0700)]
JSON format test for `wp user list`

Also, fix the CSV used in the setup of the scenario as it originally caused the test to fail

11 years agoConvert `wp user list --ids` to `wp user list --format=ids`
Daniel Bachhuber [Fri, 19 Apr 2013 21:27:20 +0000 (14:27 -0700)]
Convert `wp user list --ids` to `wp user list --format=ids`

Also, dropped the formatting of the `$output_items`, as a user is already a WP_User object and the formatting is handled within our `format_items()` util

11 years agoRefactor to allow 'ids' be passed to `format_items()` as a formatting argument
Daniel Bachhuber [Fri, 19 Apr 2013 21:08:31 +0000 (14:08 -0700)]
Refactor to allow 'ids' be passed to `format_items()` as a formatting argument

11 years agowp term list: Support for `--ids` argument
Daniel Bachhuber [Fri, 19 Apr 2013 04:04:17 +0000 (21:04 -0700)]
wp term list: Support for `--ids` argument

11 years agoadd man page for scaffold child-theme. see #339
scribu [Fri, 19 Apr 2013 21:26:38 +0000 (00:26 +0300)]
add man page for scaffold child-theme. see #339

11 years agoLand `wp scaffold child-theme`
scribu [Fri, 19 Apr 2013 21:19:20 +0000 (00:19 +0300)]
Land `wp scaffold child-theme`

closes #339

11 years agostyle fixes for scaffold child-theme
scribu [Fri, 19 Apr 2013 21:19:08 +0000 (00:19 +0300)]
style fixes for scaffold child-theme

11 years agomake --parent_theme mandatory
scribu [Fri, 19 Apr 2013 21:14:37 +0000 (00:14 +0300)]
make --parent_theme mandatory

11 years agorename `scaffold child_theme` to `scaffold child-theme`
scribu [Fri, 19 Apr 2013 21:10:28 +0000 (00:10 +0300)]
rename `scaffold child_theme` to `scaffold child-theme`

11 years agoSimplify expression of the run with errors condition
Daniel Bachhuber [Fri, 19 Apr 2013 20:33:52 +0000 (13:33 -0700)]
Simplify expression of the run with errors condition

See https://github.com/wp-cli/wp-cli/pull/398/files#r3869578

11 years agoSkip checking these numeric fields, as they might change during the tests
Daniel Bachhuber [Fri, 19 Apr 2013 20:30:55 +0000 (13:30 -0700)]
Skip checking these numeric fields, as they might change during the tests

See https://github.com/wp-cli/wp-cli/pull/398/files#r3869915

11 years agoMove declaration of compareContents() outside of a function, to avoid fatals when...
Daniel Bachhuber [Fri, 19 Apr 2013 20:28:03 +0000 (13:28 -0700)]
Move declaration of compareContents() outside of a function, to avoid fatals when the function is declared twice

See https://github.com/wp-cli/wp-cli/pull/398/files#r3869537

11 years agoMerge pull request #397 from wp-cli/composer-ignore
Cristi Burcă [Fri, 19 Apr 2013 08:21:41 +0000 (01:21 -0700)]
Merge pull request #397 from wp-cli/composer-ignore

Ignore composer.phar, as it's installed separately from the project

11 years agoActually fix failing tests.
Daniel Bachhuber [Fri, 19 Apr 2013 03:35:29 +0000 (20:35 -0700)]
Actually fix failing tests.

Functions defined inside of functions cause everything to fatal when the parent function is called twice.

11 years agoNewline fix for failed test
Daniel Bachhuber [Fri, 19 Apr 2013 02:14:15 +0000 (19:14 -0700)]
Newline fix for failed test

11 years agoFunctional test for creating / listing a term
Daniel Bachhuber [Fri, 19 Apr 2013 02:03:11 +0000 (19:03 -0700)]
Functional test for creating / listing a term

11 years agoIgnore composer.phar, as it's installed separately from the project
Daniel Bachhuber [Fri, 19 Apr 2013 01:24:58 +0000 (18:24 -0700)]
Ignore composer.phar, as it's installed separately from the project

11 years agoMerge pull request #391 from linepress/scaffold-fix
Cristi Burcă [Wed, 17 Apr 2013 09:10:13 +0000 (02:10 -0700)]
Merge pull request #391 from linepress/scaffold-fix

Scaffold tax queryvar fix

11 years agoFixed query_var using slug instead of boolean TRUE
jmslbam [Tue, 16 Apr 2013 23:12:09 +0000 (01:12 +0200)]
Fixed query_var using slug instead of boolean TRUE

11 years agoMerge pull request #378 from j3lamp/master
Cristi Burcă [Mon, 15 Apr 2013 20:30:10 +0000 (13:30 -0700)]
Merge pull request #378 from j3lamp/master

`post get` command

11 years agoRefactored the poorly named `compareJson()` function into the more accurate `checkTha...
John Lamp [Mon, 15 Apr 2013 02:29:30 +0000 (22:29 -0400)]
Refactored the poorly named `compareJson()` function into the more accurate `checkThatJsonStringContainsJsonString()` function which encapsulates the calls to `json_decode()`.

11 years agomark some iterator methods as private
scribu [Sun, 14 Apr 2013 23:38:23 +0000 (02:38 +0300)]
mark some iterator methods as private

see #390

11 years agomake query string mandatory first parameter in Iterators\Query constructor
scribu [Sun, 14 Apr 2013 23:37:32 +0000 (02:37 +0300)]
make query string mandatory first parameter in Iterators\Query constructor

see #390

11 years agoMerge pull request #390 from wp-cli/refactor-iterators
Cristi Burcă [Sun, 14 Apr 2013 22:00:50 +0000 (15:00 -0700)]
Merge pull request #390 from wp-cli/refactor-iterators

Move iterators to inner namespace

11 years agoadd smoke test for wp user import-csv
scribu [Sun, 14 Apr 2013 21:57:16 +0000 (00:57 +0300)]
add smoke test for wp user import-csv

11 years agofix class reference in Iterators/Table.php
scribu [Sun, 14 Apr 2013 20:17:07 +0000 (23:17 +0300)]
fix class reference in Iterators/Table.php

11 years agoadd smoke test for search-replace
scribu [Sun, 14 Apr 2013 20:13:56 +0000 (23:13 +0300)]
add smoke test for search-replace

11 years agoon OS X, wc -l inexplicably outputs whitespace before the result
scribu [Sun, 14 Apr 2013 19:18:42 +0000 (22:18 +0300)]
on OS X, wc -l inexplicably outputs whitespace before the result

11 years agomove iterators to separate namespace
scribu [Sun, 14 Apr 2013 19:11:05 +0000 (22:11 +0300)]
move iterators to separate namespace

11 years agoRemoved CSV format from `post get`, with JSON format it is redundent, etc.
John Lamp [Sun, 14 Apr 2013 00:46:32 +0000 (20:46 -0400)]
Removed CSV format from `post get`, with JSON format it is redundent, etc.
Removed the `post_content` field from the table format output as the table becomes unweildy and the extremely long value of the content or the content itself causes problems with the table processing. Besides, chances are if one wanted the contents and the other fields JSON would be easier anyway.

11 years agoMerge pull request #386 from wp-cli/post-list-format
Cristi Burcă [Sat, 13 Apr 2013 18:52:54 +0000 (11:52 -0700)]
Merge pull request #386 from wp-cli/post-list-format

Support for `--format` when using `wp post list`

11 years agoMerge pull request #387 from twisty/master
Cristi Burcă [Sat, 13 Apr 2013 18:45:21 +0000 (11:45 -0700)]
Merge pull request #387 from twisty/master

Example in man page for 'core is-installed' doesn't work

11 years agoAdded the `--feature` option for `post get`.
John Lamp [Sat, 13 Apr 2013 01:21:33 +0000 (21:21 -0400)]
Added the `--feature` option for `post get`.

11 years agoFix example for 'core is-installed'
Tim Brayshaw [Fri, 12 Apr 2013 23:10:15 +0000 (00:10 +0100)]
Fix example for 'core is-installed'

11 years agoSupport for `--format` when using `wp post list`
Daniel Bachhuber [Fri, 12 Apr 2013 17:06:16 +0000 (10:06 -0700)]
Support for `--format` when using `wp post list`

11 years agoRevert a134ce6e46561e9f36ee5efeb33e69ad97b97141
Daniel Bachhuber [Fri, 12 Apr 2013 16:47:39 +0000 (09:47 -0700)]
Revert a134ce6e46561e9f36ee5efeb33e69ad97b97141

See https://github.com/wp-cli/wp-cli/commit/a134ce6e46561e9f36ee5efeb33e69ad97b97141#commitcomment-3001898

11 years agoCorrect file permissions to 755
Daniel Bachhuber [Fri, 12 Apr 2013 15:59:13 +0000 (08:59 -0700)]
Correct file permissions to 755

11 years agobe more explicit about which code is covered by the MIT license
Cristi Burcă [Fri, 12 Apr 2013 14:24:02 +0000 (17:24 +0300)]
be more explicit about which code is covered by the MIT license

11 years agoMerge pull request #379 from wp-cli/ignore-db-defaults
Cristi Burcă [Tue, 9 Apr 2013 18:01:27 +0000 (11:01 -0700)]
Merge pull request #379 from wp-cli/ignore-db-defaults

Fixes #377

11 years agotests: add IF NOT EXISTS to create_db()
scribu [Tue, 9 Apr 2013 17:39:44 +0000 (20:39 +0300)]
tests: add IF NOT EXISTS to create_db()

11 years agoRemoved the <filename> argument from `post get`.
John Lamp [Fri, 5 Apr 2013 21:23:23 +0000 (17:23 -0400)]
Removed the <filename> argument from `post get`.

11 years agouse run_mysql_query() in functional tests too
scribu [Fri, 5 Apr 2013 19:05:15 +0000 (22:05 +0300)]
use run_mysql_query() in functional tests too

11 years agoadd --defaults-file=/dev/null to mysql commands
scribu [Fri, 5 Apr 2013 18:21:20 +0000 (21:21 +0300)]
add --defaults-file=/dev/null to mysql commands

11 years agoMerge pull request #365 from linepress/scaffold-label
Cristi Burcă [Fri, 5 Apr 2013 14:06:10 +0000 (07:06 -0700)]
Merge pull request #365 from linepress/scaffold-label

Scaffold cpt / tax with label

11 years agoRemoved feature tag
jmslbam [Fri, 5 Apr 2013 10:27:45 +0000 (12:27 +0200)]
Removed feature tag

11 years agoAdded `post get` command.
John Lamp [Fri, 5 Apr 2013 02:26:36 +0000 (22:26 -0400)]
Added `post get` command.

11 years agoReorder tests
jmslbam [Thu, 4 Apr 2013 21:54:12 +0000 (23:54 +0200)]
Reorder tests

11 years agoAdded label scaffold behat test
jmslbam [Thu, 4 Apr 2013 21:51:02 +0000 (23:51 +0200)]
Added label scaffold behat test

11 years agoMerge pull request #374 from wp-cli/tests-db
Cristi Burcă [Thu, 4 Apr 2013 02:16:27 +0000 (19:16 -0700)]
Merge pull request #374 from wp-cli/tests-db

`wp core init-tests` should create the database

11 years agoupdate db man page
scribu [Thu, 4 Apr 2013 02:13:56 +0000 (05:13 +0300)]
update db man page

11 years agocreate tests database if it doesn't exist
scribu [Thu, 4 Apr 2013 01:38:22 +0000 (04:38 +0300)]
create tests database if it doesn't exist

11 years agoremove --str flag from db subcommands
scribu [Thu, 4 Apr 2013 01:29:14 +0000 (04:29 +0300)]
remove --str flag from db subcommands

The --str flag assumes that all the information will be passed as CLI
arguments, but that's no longer the case since we started using the
MYSQL_PWD env variable.

And we might want to start using the PDO extension in the future,
instead of the `mysql` binary.

Also introduce run_mysql_query() utility.

11 years agoMerge pull request #373 from wp-cli/shell-history
Cristi Burcă [Thu, 4 Apr 2013 00:26:18 +0000 (17:26 -0700)]
Merge pull request #373 from wp-cli/shell-history

shell: retrieve history

11 years agocompute the history file path at the beginning
scribu [Wed, 3 Apr 2013 22:54:56 +0000 (01:54 +0300)]
compute the history file path at the beginning

this avoids problems if the user calls chdir()

11 years agoadd man page for `wp shell`
scribu [Wed, 3 Apr 2013 22:41:23 +0000 (01:41 +0300)]
add man page for `wp shell`

11 years agoadd 'history' command
scribu [Wed, 3 Apr 2013 21:10:14 +0000 (00:10 +0300)]
add 'history' command

11 years agobump version to 0.10.0-alpha
scribu [Sat, 30 Mar 2013 17:38:19 +0000 (19:38 +0200)]
bump version to 0.10.0-alpha

11 years agoMerge pull request #362 from x-team/config-path-walk
Cristi Burcă [Sat, 30 Mar 2013 16:22:07 +0000 (09:22 -0700)]
Merge pull request #362 from x-team/config-path-walk

walk up directory tree to find config file

11 years agoadd tests for running commands from a subdirectory
scribu [Tue, 26 Mar 2013 18:17:06 +0000 (20:17 +0200)]
add tests for running commands from a subdirectory

see #362

11 years agodocument --force parameter for wp core download
scribu [Sat, 30 Mar 2013 15:12:19 +0000 (17:12 +0200)]
document --force parameter for wp core download

11 years agomanpages: check for ronn executable before doing anything
scribu [Sat, 30 Mar 2013 15:07:01 +0000 (17:07 +0200)]
manpages: check for ronn executable before doing anything

11 years agoupdate-phar: OSX doesn't ship with md5sum, so use md5 -r
scribu [Sat, 30 Mar 2013 14:59:09 +0000 (16:59 +0200)]
update-phar: OSX doesn't ship with md5sum, so use md5 -r

11 years agoset version to 0.9.1 v0.9.1
scribu [Sat, 30 Mar 2013 14:34:19 +0000 (16:34 +0200)]
set version to 0.9.1

11 years agouse slug as theme name. closes #372
scribu [Sat, 30 Mar 2013 14:05:26 +0000 (16:05 +0200)]
use slug as theme name. closes #372

11 years agohandle edge case finding wp-cli.yml in nested subdirectory installs
Weston Ruter [Sat, 30 Mar 2013 07:53:28 +0000 (00:53 -0700)]
handle edge case finding wp-cli.yml in nested subdirectory installs

See comment by @scribu: https://github.com/wp-cli/wp-cli/pull/362#issuecomment-15506011

11 years agoMerge pull request #366 from linepress/media-tests
Cristi Burcă [Fri, 29 Mar 2013 06:19:04 +0000 (23:19 -0700)]
Merge pull request #366 from linepress/media-tests

Added behat feature for media regenerate

11 years agobump version to 0.9.1-alpha
scribu [Fri, 29 Mar 2013 05:39:04 +0000 (07:39 +0200)]
bump version to 0.9.1-alpha

11 years agoMerge pull request #369 from wp-cli/fix-mysql-warning
Cristi Burcă [Fri, 29 Mar 2013 05:38:06 +0000 (22:38 -0700)]
Merge pull request #369 from wp-cli/fix-mysql-warning

Warning: Using a password on the command line interface can be insecure

11 years agouse MYSQL_PWD env variable, instead of passing the password as a CLI
scribu [Fri, 29 Mar 2013 05:22:53 +0000 (07:22 +0200)]
use MYSQL_PWD env variable, instead of passing the password as a CLI
arg

11 years agoadd some functional tests for `wp db`
scribu [Fri, 29 Mar 2013 05:22:19 +0000 (07:22 +0200)]
add some functional tests for `wp db`

11 years agouse MYSQL_PWD env variable in FeatureContext->run_sql()
scribu [Fri, 29 Mar 2013 02:54:23 +0000 (04:54 +0200)]
use MYSQL_PWD env variable in FeatureContext->run_sql()

11 years agodeb-build: add sudo where appropriate
scribu [Fri, 29 Mar 2013 02:24:31 +0000 (04:24 +0200)]
deb-build: add sudo where appropriate

see #368

11 years agoprevent absolutizing a relative config path when it is empty
Weston Ruter [Thu, 28 Mar 2013 01:06:17 +0000 (18:06 -0700)]
prevent absolutizing a relative config path when it is empty

The result was that the config path was erroneously being set to the root /
This specifically happened when downloading WordPress via `wp core download`

See comment by @scribu: https://github.com/wp-cli/wp-cli/pull/362#issuecomment-15480546

11 years agoOnly preg_replace default $slug
jmslbam [Wed, 27 Mar 2013 20:01:38 +0000 (21:01 +0100)]
Only preg_replace default $slug

11 years agoAdded label to tax and cpt
jmslbam [Wed, 27 Mar 2013 08:20:09 +0000 (09:20 +0100)]
Added label to tax and cpt

11 years agoRegenerate Man
jmslbam [Wed, 27 Mar 2013 08:19:54 +0000 (09:19 +0100)]
Regenerate Man

11 years agofix comment about param-dump
scribu [Wed, 27 Mar 2013 05:15:03 +0000 (07:15 +0200)]
fix comment about param-dump

[ci skip]

11 years agoadd run cmd from subdir step definition
scribu [Tue, 26 Mar 2013 17:48:21 +0000 (19:48 +0200)]
add run cmd from subdir step definition

11 years ago'a custom wp-content directory'
scribu [Tue, 26 Mar 2013 17:42:57 +0000 (19:42 +0200)]
'a custom wp-content directory'

11 years agoAdded behat feature for media regenerate
jmslbam [Mon, 25 Mar 2013 18:28:56 +0000 (19:28 +0100)]
Added behat feature for media regenerate

11 years agoadd scenario for WP in a subdir
scribu [Mon, 25 Mar 2013 15:18:33 +0000 (17:18 +0200)]
add scenario for WP in a subdir

11 years agoadd basic scenarios for wp-cli.yml
scribu [Sun, 24 Mar 2013 04:52:52 +0000 (06:52 +0200)]
add basic scenarios for wp-cli.yml

11 years agoadd 'cwd' key to FeatureContext->_run() result
scribu [Sun, 24 Mar 2013 04:43:32 +0000 (06:43 +0200)]
add 'cwd' key to FeatureContext->_run() result

11 years agosplit single site from multisite install steps
scribu [Sun, 24 Mar 2013 03:53:33 +0000 (05:53 +0200)]
split single site from multisite install steps

11 years agopass cwd directly to proc_open() and revert changes to get_path()
scribu [Sun, 24 Mar 2013 03:41:55 +0000 (05:41 +0200)]
pass cwd directly to proc_open() and revert changes to get_path()