OSDN Git Service

wvm/wvm.git
10 years agobehat: replace hidden parameters to 'wp config' with explicit variable
scribu [Wed, 21 Aug 2013 21:27:07 +0000 (00:27 +0300)]
behat: replace hidden parameters to 'wp config' with explicit variable

10 years agocore config: use cmd_starts_with() instead of doing a strict array comparison
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

10 years agobehat: show working dir when the return code is wrong
scribu [Wed, 21 Aug 2013 20:58:23 +0000 (23:58 +0300)]
behat: show working dir when the return code is wrong

10 years agoadd test that reproduces both #435 and #716
scribu [Wed, 21 Aug 2013 20:06:36 +0000 (23:06 +0300)]
add test that reproduces both #435 and #716

11 years agoMerge pull request #710 from johnbillion/flush-docs
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`

11 years agoCorrect 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`

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

11 years agoTest `wp term get`
Daniel Bachhuber [Tue, 20 Aug 2013 15:07:52 +0000 (08:07 -0700)]
Test `wp term get`

11 years agoA subcommand for getting a taxonomy term
Daniel Bachhuber [Tue, 20 Aug 2013 15:07:37 +0000 (08:07 -0700)]
A subcommand for getting a taxonomy term

11 years agoMerge pull request #707 from wp-cli/more-assoc-table-707
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

11 years agoMerge pull request #705 from wp-cli/fix-theme-path
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`

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

11 years agoThis method has been replaced by a helper util of the same functionality
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

11 years agoUse our new util function
Daniel Bachhuber [Tue, 20 Aug 2013 14:37:59 +0000 (07:37 -0700)]
Use our new util function

11 years agoTest for `wp comment get`
Daniel Bachhuber [Tue, 20 Aug 2013 06:04:48 +0000 (23:04 -0700)]
Test for `wp comment get`

11 years agoImplement `wp comment get`
Daniel Bachhuber [Tue, 20 Aug 2013 06:02:36 +0000 (23:02 -0700)]
Implement `wp comment get`

11 years agoUse P2, which isn't conditionally present in some WordPress installs
Daniel Bachhuber [Tue, 20 Aug 2013 14:13:30 +0000 (07:13 -0700)]
Use P2, which isn't conditionally present in some WordPress installs

11 years agoMerge branch 'master' into fix-theme-path
Daniel Bachhuber [Tue, 20 Aug 2013 14:12:09 +0000 (07:12 -0700)]
Merge branch 'master' into fix-theme-path

Conflicts:
features/theme.feature

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

11 years agoUse P2 for tests instead, which won't fatal 3.4 (twentyeleven is already installed)
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)

11 years agoImplement `wp theme get`
Daniel Bachhuber [Tue, 20 Aug 2013 05:57:01 +0000 (22:57 -0700)]
Implement `wp theme get`

11 years agoClarification on what this command actually does
Daniel Bachhuber [Tue, 20 Aug 2013 05:26:06 +0000 (22:26 -0700)]
Clarification on what this command actually does

11 years agoA functional test for `wp theme path`
Daniel Bachhuber [Tue, 20 Aug 2013 05:24:03 +0000 (22:24 -0700)]
A functional test for `wp theme path`

11 years agoThis should explicitly be a public method.
Daniel Bachhuber [Tue, 20 Aug 2013 05:12:24 +0000 (22:12 -0700)]
This should explicitly be a public method.

11 years agoMerge pull request #699 from wp-cli/fix-synopsis
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

11 years agoFix 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.

11 years agoExclude assoc args with that have an optional value from being unset
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.

11 years agoadd test for assoc arg with optional value
scribu [Mon, 19 Aug 2013 22:41:51 +0000 (01:41 +0300)]
add test for assoc arg with optional value

11 years agoMerge pull request #685 from wp-cli/db-call-cleanup
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

11 years agominor cleanup in mysql_host_to_cli_args()
scribu [Fri, 16 Aug 2013 20:45:18 +0000 (23:45 +0300)]
minor cleanup in mysql_host_to_cli_args()

11 years agoRefactor MySQL utilities:
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

11 years agopass MYSQL_PWD to proc_open(), instead of altering the current environment
scribu [Fri, 16 Aug 2013 18:34:19 +0000 (21:34 +0300)]
pass MYSQL_PWD to proc_open(), instead of altering the current environment

11 years agoMerge pull request #684 from oxford-themes/db-export-host_port-fix
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

11 years agoadding support for sockets
mattes [Fri, 16 Aug 2013 17:45:30 +0000 (19:45 +0200)]
adding support for sockets

11 years agofixed bug, when having a port number in host
mattes [Fri, 16 Aug 2013 17:20:01 +0000 (19:20 +0200)]
fixed bug, when having a port number in host

11 years agoalways use bundled autoload in Phar file
scribu [Fri, 16 Aug 2013 15:11:30 +0000 (18:11 +0300)]
always use bundled autoload in Phar file

see #658

11 years agomake wp.bat executable
scribu [Fri, 16 Aug 2013 15:09:27 +0000 (18:09 +0300)]
make wp.bat executable

11 years agoMerge pull request #662 from wp-cli/csv-stream
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

11 years agocast arrays to objects instead of the other way around
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

11 years agoconvert user object to array using its to_array() method
scribu [Fri, 16 Aug 2013 00:39:22 +0000 (03:39 +0300)]
convert user object to array using its to_array() method

11 years agoadd some missing conversions to/from iterators
scribu [Fri, 16 Aug 2013 00:38:35 +0000 (03:38 +0300)]
add some missing conversions to/from iterators

11 years agointroduce iterator_map() and avoid converting iterator to array in `wp site list`
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`

11 years agoavoid converting iterator into array unless absolutely necessary in
scribu [Thu, 15 Aug 2013 23:57:15 +0000 (02:57 +0300)]
avoid converting iterator into array unless absolutely necessary in
format_items()

11 years agoset 'master' as the deploy branch; see #658
scribu [Thu, 15 Aug 2013 15:15:34 +0000 (18:15 +0300)]
set 'master' as the deploy branch; see #658

11 years agoMerge pull request #658 from wp-cli/phar-builder
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

11 years agoautomatically deploy Phar file to wp-cli/builds
scribu [Thu, 15 Aug 2013 14:08:43 +0000 (17:08 +0300)]
automatically deploy Phar file to wp-cli/builds

11 years agoMerge pull request #678 from wp-cli/change-autoload-678
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

11 years agomove Phar building to ci/prepare.sh and rename ci/build.sh to ci/test.sh
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

11 years agoChange load order of autoloaders
Daniel Bachhuber [Wed, 14 Aug 2013 21:50:05 +0000 (21:50 +0000)]
Change load order of autoloaders

11 years agomove WP_CLI_BIN_DIR env variable to .travis.yml
scribu [Wed, 14 Aug 2013 21:07:02 +0000 (00:07 +0300)]
move WP_CLI_BIN_DIR env variable to .travis.yml

11 years agogive shorter names to ci scripts
scribu [Wed, 14 Aug 2013 21:03:38 +0000 (00:03 +0300)]
give shorter names to ci scripts

11 years agophar: add all files from the templates/ directory
scribu [Wed, 14 Aug 2013 20:38:45 +0000 (23:38 +0300)]
phar: add all files from the templates/ directory

11 years agophar: add missing rumsaa/array_column dependency
scribu [Wed, 14 Aug 2013 20:21:32 +0000 (23:21 +0300)]
phar: add missing rumsaa/array_column dependency

11 years agorun the functional tests against the Phar file
scribu [Wed, 14 Aug 2013 20:20:29 +0000 (23:20 +0300)]
run the functional tests against the Phar file

11 years agobump version to 0.12-alpha2
scribu [Wed, 14 Aug 2013 20:31:08 +0000 (23:31 +0300)]
bump version to 0.12-alpha2

11 years agoadd symfony/finder as dev dependency
scribu [Wed, 14 Aug 2013 19:52:47 +0000 (22:52 +0300)]
add symfony/finder as dev dependency

11 years agoresurect Phar building code removed in 8483fb709b2285a033515f59b4ad818468a0372a
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

11 years agobring back accidentally removed test; see #674
scribu [Wed, 14 Aug 2013 17:00:07 +0000 (20:00 +0300)]
bring back accidentally removed test; see #674

11 years agowhitespace fixes
scribu [Wed, 14 Aug 2013 14:54:10 +0000 (17:54 +0300)]
whitespace fixes

[ci skip]

11 years agoDon't pretend we're in wp-admin, but continue to load all admin APIs.
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

11 years agoMerge pull request #643 from johnbillion/master
Cristi Burcă [Wed, 14 Aug 2013 14:06:30 +0000 (07:06 -0700)]
Merge pull request #643 from johnbillion/master

Use `wp_parse_args()` where we can

11 years agoLet's use the simpler `array_merge()` instead of `wp_parse_args()`
John Blackbourn [Wed, 14 Aug 2013 13:37:54 +0000 (14:37 +0100)]
Let's use the simpler `array_merge()` instead of `wp_parse_args()`

11 years agoMerge branch 'master' of git://github.com/wp-cli/wp-cli
John Blackbourn [Wed, 14 Aug 2013 12:53:47 +0000 (13:53 +0100)]
Merge branch 'master' of git://github.com/wp-cli/wp-cli

11 years agoMerge pull request #640 from wp-cli/psysh
Cristi Burcă [Wed, 14 Aug 2013 01:17:23 +0000 (18:17 -0700)]
Merge pull request #640 from wp-cli/psysh

Support PsySH in `wp shell`

11 years agoadd support for PsySH in `wp shell`
scribu [Tue, 13 Aug 2013 23:51:15 +0000 (02:51 +0300)]
add support for PsySH in `wp shell`

also, replace Boris as suggested package

11 years agoMerge pull request #675 from trepmal/patch-1
Cristi Burcă [Tue, 13 Aug 2013 22:50:36 +0000 (15:50 -0700)]
Merge pull request #675 from trepmal/patch-1

Correct `wp user add-role` example

11 years agoCorrect `wp user add-role` example
Kailey Lampert [Tue, 13 Aug 2013 18:49:51 +0000 (11:49 -0700)]
Correct `wp user add-role` example

11 years agobehat: extract compareTables() helper
scribu [Tue, 13 Aug 2013 18:20:52 +0000 (21:20 +0300)]
behat: extract compareTables() helper

11 years agoupdate tests for 'wp site list'. see #661
scribu [Tue, 13 Aug 2013 13:51:44 +0000 (16:51 +0300)]
update tests for 'wp site list'. see #661

11 years agoremove stray print_r()
scribu [Tue, 13 Aug 2013 13:41:29 +0000 (16:41 +0300)]
remove stray print_r()

11 years agocombine 'domain' and 'path' fields into single 'url' field; remove --format=url
scribu [Tue, 13 Aug 2013 12:54:08 +0000 (15:54 +0300)]
combine 'domain' and 'path' fields into single 'url' field; remove --format=url

see #661

11 years agoallow passing 'php://stdin' to WP_CLI\Iterators\CSV
scribu [Tue, 13 Aug 2013 13:14:46 +0000 (16:14 +0300)]
allow passing 'php://stdin' to WP_CLI\Iterators\CSV

11 years agosite list: add --format=url; see #661
scribu [Tue, 13 Aug 2013 00:13:16 +0000 (03:13 +0300)]
site list: add --format=url; see #661

11 years agoMerge pull request #649 from joshbetz/master
Cristi Burcă [Mon, 12 Aug 2013 23:16:24 +0000 (16:16 -0700)]
Merge pull request #649 from joshbetz/master

Add is-installed command to wp-cli

11 years agoFixed test for `wp plugin is-installed <plugin>`
Josh Betz [Mon, 12 Aug 2013 22:55:55 +0000 (17:55 -0500)]
Fixed test for `wp plugin is-installed <plugin>`

There was extra white space in the expected output

11 years agoFirst pass at Behat test for `wp plugin is-installed <plugin>`
Josh Betz [Mon, 12 Aug 2013 22:37:07 +0000 (17:37 -0500)]
First pass at Behat test for `wp plugin is-installed <plugin>`

11 years agoMerge pull request #665 from wp-cli/no-dev-deps
Cristi Burcă [Mon, 12 Aug 2013 20:50:25 +0000 (13:50 -0700)]
Merge pull request #665 from wp-cli/no-dev-deps

Can't run Behat while having community packages installed

11 years agoupdate utils/dev-build
scribu [Mon, 12 Aug 2013 20:41:16 +0000 (23:41 +0300)]
update utils/dev-build

11 years agofix assertNumeric() usage
scribu [Mon, 12 Aug 2013 20:05:39 +0000 (23:05 +0300)]
fix assertNumeric() usage

11 years agoreplace remaining assertion calls with direct exceptions
scribu [Mon, 12 Aug 2013 19:56:15 +0000 (22:56 +0300)]
replace remaining assertion calls with direct exceptions

11 years agoreplace assertStringMatchesFormat() with assertNumeric()
scribu [Mon, 12 Aug 2013 19:48:58 +0000 (22:48 +0300)]
replace assertStringMatchesFormat() with assertNumeric()

11 years agouse sprintf() instead of concatenation; see #666
scribu [Mon, 12 Aug 2013 18:42:44 +0000 (21:42 +0300)]
use sprintf() instead of concatenation; see #666

11 years agowhitespace is nice, but let's not get ridiculous
scribu [Mon, 12 Aug 2013 18:37:20 +0000 (21:37 +0300)]
whitespace is nice, but let's not get ridiculous

11 years agofix coding standards; see #666
scribu [Mon, 12 Aug 2013 18:36:13 +0000 (21:36 +0300)]
fix coding standards; see #666

11 years agoMerge pull request #666 from MattiaG/patch-1
Cristi Burcă [Mon, 12 Aug 2013 18:31:06 +0000 (11:31 -0700)]
Merge pull request #666 from MattiaG/patch-1

allow to use both --locale and --version params for 'wp core download'

11 years agoallow to use both --locale and --version params for 'wp core download'
MattiaG [Mon, 12 Aug 2013 17:28:21 +0000 (19:28 +0200)]
allow to use both --locale and --version params for 'wp core download'

Ugly coded, but not so different from source. If the requested combination of locale+version is not available, the script fails like with wrong version parameter.
Tested setting it_IT and de_DE parameters and various versions.

11 years agoMerge pull request #544 from Rarst/wp-bat
Cristi Burcă [Mon, 12 Aug 2013 13:33:10 +0000 (06:33 -0700)]
Merge pull request #544 from Rarst/wp-bat

Added basic wp.bat launcher for Windows environment.

11 years agoreplace PHPUnit assertEquals() with homegrown variant
scribu [Mon, 12 Aug 2013 11:45:44 +0000 (14:45 +0300)]
replace PHPUnit assertEquals() with homegrown variant

11 years agosite list: add a more useful example
scribu [Mon, 12 Aug 2013 11:14:00 +0000 (14:14 +0300)]
site list: add a more useful example

see #661

11 years agotravis: install Behat in the local build dir
scribu [Mon, 12 Aug 2013 09:44:49 +0000 (12:44 +0300)]
travis: install Behat in the local build dir

11 years agotests: first pass at using global PHPUnit and Behat
scribu [Mon, 12 Aug 2013 09:40:17 +0000 (12:40 +0300)]
tests: first pass at using global PHPUnit and Behat

11 years agoMerge pull request #608 from wp-cli/mandatory-admin-name-608
Cristi Burcă [Sun, 11 Aug 2013 22:22:14 +0000 (15:22 -0700)]
Merge pull request #608 from wp-cli/mandatory-admin-name-608

Make the --admin_name parameter mandatory

11 years agoCleverness kills tests
Daniel Bachhuber [Sun, 11 Aug 2013 21:32:14 +0000 (14:32 -0700)]
Cleverness kills tests

11 years agoUpdate tests
Daniel Bachhuber [Sun, 11 Aug 2013 21:18:27 +0000 (14:18 -0700)]
Update tests

11 years agoConvert `--admin_name` to `--admin_user`, which is more semantic.
Daniel Bachhuber [Sun, 11 Aug 2013 21:16:39 +0000 (14:16 -0700)]
Convert `--admin_name` to `--admin_user`, which is more semantic.

11 years agoMerge pull request #620 from wp-cli/use-gettext-taxonomy-scaffold
Cristi Burcă [Sun, 11 Aug 2013 20:58:50 +0000 (13:58 -0700)]
Merge pull request #620 from wp-cli/use-gettext-taxonomy-scaffold

Taxonomy Scaffold: Use gettext context

11 years agoMake `--admin_name` required, to discourage use of 'admin' as the default user
Daniel Bachhuber [Sun, 11 Aug 2013 20:53:08 +0000 (13:53 -0700)]
Make `--admin_name` required, to discourage use of 'admin' as the default user

11 years agoMerge branch 'master' into use-gettext-taxonomy-scaffold
Daniel Bachhuber [Sun, 11 Aug 2013 20:46:06 +0000 (13:46 -0700)]
Merge branch 'master' into use-gettext-taxonomy-scaffold

11 years agoUpdate tests
Daniel Bachhuber [Sun, 11 Aug 2013 20:45:56 +0000 (13:45 -0700)]
Update tests

11 years agoMerge pull request #661 from wp-cli/site-list
Cristi Burcă [Sat, 10 Aug 2013 20:18:28 +0000 (13:18 -0700)]
Merge pull request #661 from wp-cli/site-list

Implement `wp site list` command