OSDN Git Service

wvm/wvm.git
11 years agoMerge pull request #334 from sebastiaandegeus/master
Cristi Burcă [Thu, 28 Feb 2013 10:03:28 +0000 (02:03 -0800)]
Merge pull request #334 from sebastiaandegeus/master

dbpass as an optional argument for wp core config command

11 years agoregenerated the man page for core config command
Sebastiaan de Geus [Thu, 28 Feb 2013 09:44:43 +0000 (10:44 +0100)]
regenerated the man page for core config command

11 years agomade dbpass parameter optional for core config command
Sebastiaan de Geus [Thu, 28 Feb 2013 09:42:31 +0000 (10:42 +0100)]
made dbpass parameter optional for core config command

11 years agouse `wp core version` instead of `wp post list` to check if the install
scribu [Wed, 27 Feb 2013 18:39:24 +0000 (20:39 +0200)]
use `wp core version` instead of `wp post list` to check if the install
was successful.

11 years agoshorten synopsis for boolean parameters
scribu [Wed, 27 Feb 2013 11:00:35 +0000 (13:00 +0200)]
shorten synopsis for boolean parameters

11 years agotravis: add --no-interaction flag to Composer call
scribu [Wed, 27 Feb 2013 10:52:27 +0000 (12:52 +0200)]
travis: add --no-interaction flag to Composer call

Should at least make stalled builds fail faster.

11 years agoMerge pull request #327 from wp-cli/fix-core-download
Cristi Burcă [Wed, 27 Feb 2013 10:34:31 +0000 (02:34 -0800)]
Merge pull request #327 from wp-cli/fix-core-download

Fix path handling in `core download`

11 years agoPrepend `--path`, instead of appending it, so that piping works.
scribu [Wed, 27 Feb 2013 10:15:22 +0000 (12:15 +0200)]
Prepend `--path`, instead of appending it, so that piping works.

11 years agoIgnore `wp ` prefix straigth from step definition.
scribu [Wed, 27 Feb 2013 10:09:39 +0000 (12:09 +0200)]
Ignore `wp ` prefix straigth from step definition.

This makes it clearer that running arbitrary commands is not supported.

11 years agoMerge pull request #330 from erwanlr/db-create-syntax-error
Cristi Burcă [Wed, 27 Feb 2013 09:49:33 +0000 (01:49 -0800)]
Merge pull request #330 from erwanlr/db-create-syntax-error

db create / drop / reset syntax error

11 years agofix coding standards. see #329
scribu [Wed, 27 Feb 2013 09:45:26 +0000 (11:45 +0200)]
fix coding standards. see #329

11 years agoMerge pull request #329 from erwanlr/master
Cristi Burcă [Wed, 27 Feb 2013 09:38:47 +0000 (01:38 -0800)]
Merge pull request #329 from erwanlr/master

Fixes set_wp_root

11 years agoFixes #321 db create / drop / reset syntax error with some dbnames (like wordpress...
erwanlr [Wed, 27 Feb 2013 09:22:52 +0000 (10:22 +0100)]
Fixes #321 db create / drop / reset syntax error with some dbnames (like wordpress-3.5.1)

11 years ago'/' missing
erwanlr [Wed, 27 Feb 2013 09:15:22 +0000 (10:15 +0100)]
'/' missing

11 years agoFixes Runner::set_wp_root to handle absolute & relative path
erwanlr [Tue, 26 Feb 2013 21:55:40 +0000 (22:55 +0100)]
Fixes Runner::set_wp_root to handle absolute & relative path

11 years agocreate ABSPATH if it doesn't exist. props @erwanlr
scribu [Tue, 26 Feb 2013 21:38:53 +0000 (23:38 +0200)]
create ABSPATH if it doesn't exist. props @erwanlr

11 years agouse ABSPATH in `core download`, instead of '.'
scribu [Tue, 26 Feb 2013 21:06:37 +0000 (23:06 +0200)]
use ABSPATH in `core download`, instead of '.'

11 years agoadd core download check in 'Empty dir' scenario
scribu [Tue, 26 Feb 2013 21:03:34 +0000 (23:03 +0200)]
add core download check in 'Empty dir' scenario

11 years agorely on --path, instead of using chdir()
scribu [Tue, 26 Feb 2013 21:03:16 +0000 (23:03 +0200)]
rely on --path, instead of using chdir()

11 years agoMerge pull request #324 from taupecat/master
Cristi Burcă [Tue, 26 Feb 2013 09:23:36 +0000 (01:23 -0800)]
Merge pull request #324 from taupecat/master

Tiny correction: colorize is misspelled in php/config-spec.php

11 years agoUpdate php/config-spec.php
Tracy Rotton [Tue, 26 Feb 2013 02:53:46 +0000 (21:53 -0500)]
Update php/config-spec.php

Fixed the spelling of "colorize."

11 years agoadd Build Status image to readme
scribu [Mon, 25 Feb 2013 18:30:59 +0000 (20:30 +0200)]
add Build Status image to readme

11 years ago'Db doesn't exist scenarion: make check less strict, to avoid issues with encodings
scribu [Mon, 25 Feb 2013 18:05:41 +0000 (20:05 +0200)]
'Db doesn't exist scenarion: make check less strict, to avoid issues with encodings

11 years agoremove `wp theme status twentytwelve` check
scribu [Mon, 25 Feb 2013 18:01:28 +0000 (20:01 +0200)]
remove `wp theme status twentytwelve` check

Twentytwelve is not available in WP 3.4.

11 years agomake wp core install check less strict, to avoid error from sendmail
scribu [Mon, 25 Feb 2013 17:32:30 +0000 (19:32 +0200)]
make wp core install check less strict, to avoid error from sendmail

11 years agoMerge pull request #319 from wp-cli/travis
Cristi Burcă [Mon, 25 Feb 2013 17:25:08 +0000 (09:25 -0800)]
Merge pull request #319 from wp-cli/travis

Set up Travis CI integration

11 years agomark SynopsisParser::gen_patterns() as static
scribu [Mon, 25 Feb 2013 17:13:03 +0000 (19:13 +0200)]
mark SynopsisParser::gen_patterns() as static

11 years agodon't run Behat tests if unit tests fail
scribu [Mon, 25 Feb 2013 17:02:48 +0000 (19:02 +0200)]
don't run Behat tests if unit tests fail

11 years agofirst pass at .travis.yml file
scribu [Mon, 25 Feb 2013 16:57:48 +0000 (18:57 +0200)]
first pass at .travis.yml file

11 years agorunning the tests: fix example mysql command
scribu [Mon, 25 Feb 2013 16:55:16 +0000 (18:55 +0200)]
running the tests: fix example mysql command

11 years agore-order lines in .travis.yml template to make them more readable
scribu [Mon, 25 Feb 2013 16:52:28 +0000 (18:52 +0200)]
re-order lines in .travis.yml template to make them more readable

11 years agofix version check for revision.php and post-formats.php
scribu [Mon, 25 Feb 2013 16:22:49 +0000 (18:22 +0200)]
fix version check for revision.php and post-formats.php

* 3.6-alpha, not 3.5-alpha
* 23451, because $wp_version wasn't updated with r23466

fixes #322. see #318

11 years agoMerge pull request #318 from ocean90/fix-wp-settings-cli
Cristi Burcă [Sun, 24 Feb 2013 20:36:45 +0000 (12:36 -0800)]
Merge pull request #318 from ocean90/fix-wp-settings-cli

Fatal error, because of new files added in WP#23466

11 years agoFix fatal error, because of new files, see https://core.trac.wordpress.org/changeset...
Dominik Schilling [Sun, 24 Feb 2013 14:05:23 +0000 (15:05 +0100)]
Fix fatal error, because of new files, see https://core.trac.wordpress.org/changeset/23466

11 years agomake shell readline script more readable, using a heredoc
scribu [Fri, 22 Feb 2013 07:57:54 +0000 (09:57 +0200)]
make shell readline script more readable, using a heredoc

11 years agoquiet down svn checkout in travis script. see #270
scribu [Thu, 21 Feb 2013 12:12:24 +0000 (14:12 +0200)]
quiet down svn checkout in travis script. see #270

11 years agoadd utils/update-phar
scribu [Thu, 21 Feb 2013 07:44:20 +0000 (09:44 +0200)]
add utils/update-phar

11 years agoremove P2P specific <filter> from phpunit.xml
scribu [Thu, 21 Feb 2013 06:43:01 +0000 (08:43 +0200)]
remove P2P specific <filter> from phpunit.xml

see #270

11 years agoavoid using the -l option for man, which doesn't exist on OSX
scribu [Tue, 19 Feb 2013 20:43:39 +0000 (22:43 +0200)]
avoid using the -l option for man, which doesn't exist on OSX

fixes #311

11 years agobump version to 0.9.0-alpha2
scribu [Tue, 19 Feb 2013 00:49:55 +0000 (02:49 +0200)]
bump version to 0.9.0-alpha2

11 years agoMerge pull request #309 from wp-cli/core-init-tests
Cristi Burcă [Tue, 19 Feb 2013 00:40:19 +0000 (16:40 -0800)]
Merge pull request #309 from wp-cli/core-init-tests

Initialize official testing suite

11 years agodocument path parameter and add example
scribu [Mon, 18 Feb 2013 23:58:44 +0000 (01:58 +0200)]
document path parameter and add example

11 years agoadd manpage
scribu [Mon, 18 Feb 2013 23:50:26 +0000 (01:50 +0200)]
add manpage

11 years agoadd optional path parameter
scribu [Mon, 18 Feb 2013 23:45:45 +0000 (01:45 +0200)]
add optional path parameter

11 years agoadd `wp core init-tests`
scribu [Mon, 18 Feb 2013 11:52:23 +0000 (13:52 +0200)]
add `wp core init-tests`

11 years agoMerge pull request #270 from wp-cli/plugin-tests
Cristi Burcă [Mon, 18 Feb 2013 23:34:00 +0000 (15:34 -0800)]
Merge pull request #270 from wp-cli/plugin-tests

Generate all files needed for running plugin unit tests

11 years agoadd manpage for `wp scaffold plugin-tests`
scribu [Mon, 18 Feb 2013 23:10:11 +0000 (01:10 +0200)]
add manpage for `wp scaffold plugin-tests`

11 years agorevert to using the official unit testing suite
scribu [Mon, 18 Feb 2013 13:03:13 +0000 (15:03 +0200)]
revert to using the official unit testing suite

11 years agoadd test-sample.php file
scribu [Mon, 18 Feb 2013 10:50:35 +0000 (12:50 +0200)]
add test-sample.php file

11 years agotransform add_testing_files() method into a proper subcommand
scribu [Sun, 17 Feb 2013 20:21:46 +0000 (22:21 +0200)]
transform add_testing_files() method into a proper subcommand

11 years agoshow plugin dir, instead of path on success message, since there's more
scribu [Thu, 7 Feb 2013 02:01:14 +0000 (04:01 +0200)]
show plugin dir, instead of path on success message, since there's more
than one generated file now

11 years agoadd files for plugin unit testing
scribu [Thu, 7 Feb 2013 01:46:14 +0000 (03:46 +0200)]
add files for plugin unit testing

11 years agoMerge pull request #307 from wp-cli/moar-tests
Cristi Burcă [Sun, 17 Feb 2013 16:03:24 +0000 (08:03 -0800)]
Merge pull request #307 from wp-cli/moar-tests

Moar tests!

11 years agoadd tests for --color/--no-color
scribu [Sun, 17 Feb 2013 05:37:23 +0000 (07:37 +0200)]
add tests for --color/--no-color

11 years agoadd test for --user global parameter
scribu [Sun, 17 Feb 2013 04:36:44 +0000 (06:36 +0200)]
add test for --user global parameter

11 years agoimprove indentation for step definitions
scribu [Sun, 17 Feb 2013 04:25:46 +0000 (06:25 +0200)]
improve indentation for step definitions

11 years agomerge WP_CLI_Command_Runner into FeatureContext
scribu [Sun, 17 Feb 2013 04:07:45 +0000 (06:07 +0200)]
merge WP_CLI_Command_Runner into FeatureContext

11 years agodefine steps using closures
scribu [Sun, 17 Feb 2013 03:59:26 +0000 (05:59 +0200)]
define steps using closures

11 years agoadd tests for creating/updating/deleting a post
scribu [Sun, 17 Feb 2013 03:11:02 +0000 (05:11 +0200)]
add tests for creating/updating/deleting a post

11 years agoadd test for --debug flag
scribu [Sun, 17 Feb 2013 02:59:50 +0000 (04:59 +0200)]
add test for --debug flag

11 years agoadd 'should be empty' step definition
scribu [Sun, 17 Feb 2013 02:46:18 +0000 (04:46 +0200)]
add 'should be empty' step definition

11 years agotest wp user update
scribu [Sun, 17 Feb 2013 02:17:58 +0000 (04:17 +0200)]
test wp user update

11 years agothrow stream output instead of using assertEquals()
scribu [Sun, 17 Feb 2013 02:14:02 +0000 (04:14 +0200)]
throw stream output instead of using assertEquals()

11 years agodisable unkown assoc warnings when a generic assoc specifier is present in the synopsis
scribu [Sun, 17 Feb 2013 02:08:24 +0000 (04:08 +0200)]
disable unkown assoc warnings when a generic assoc specifier is present in the synopsis

11 years agoadd missing $obj_type property to User_Command
scribu [Sun, 17 Feb 2013 01:58:18 +0000 (03:58 +0200)]
add missing $obj_type property to User_Command

11 years agomake 'should run without errors' failure more descriptive
scribu [Sun, 17 Feb 2013 01:49:53 +0000 (03:49 +0200)]
make 'should run without errors' failure more descriptive

11 years agoreplace 'return code should be 0' with 'it should run without errors'
scribu [Sun, 17 Feb 2013 01:11:01 +0000 (03:11 +0200)]
replace 'return code should be 0' with 'it should run without errors'

11 years agoadd ability to save result from previous command
scribu [Sun, 17 Feb 2013 00:34:46 +0000 (02:34 +0200)]
add ability to save result from previous command

11 years agoadd test for wp user generate
scribu [Sun, 17 Feb 2013 00:09:53 +0000 (02:09 +0200)]
add test for wp user generate

11 years agoremove boilerplate feature description
scribu [Sun, 17 Feb 2013 00:00:07 +0000 (02:00 +0200)]
remove boilerplate feature description

11 years agouse WP_CLI::warning() instead of passing false to WP_CLI::error()
scribu [Sat, 16 Feb 2013 23:59:09 +0000 (01:59 +0200)]
use WP_CLI::warning() instead of passing false to WP_CLI::error()

11 years agotest deleting the previously created user
scribu [Sat, 16 Feb 2013 23:58:49 +0000 (01:58 +0200)]
test deleting the previously created user

11 years agoadd function test for wp user create
scribu [Sat, 16 Feb 2013 23:38:45 +0000 (01:38 +0200)]
add function test for wp user create

11 years agoMerge pull request #305 from goldenapples/post-create-from-file
Cristi Burcă [Sun, 17 Feb 2013 02:09:44 +0000 (18:09 -0800)]
Merge pull request #305 from goldenapples/post-create-from-file

Post create from file

11 years agoMerge pull request #306 from wp-cli/behat
Cristi Burcă [Sat, 16 Feb 2013 23:12:31 +0000 (15:12 -0800)]
Merge pull request #306 from wp-cli/behat

Stop using PHPUnit Story

11 years agoupdate readme
scribu [Sat, 16 Feb 2013 22:58:19 +0000 (00:58 +0200)]
update readme

11 years agoconvert PHPUnit Story specs to Behat features
scribu [Sat, 16 Feb 2013 21:44:56 +0000 (23:44 +0200)]
convert PHPUnit Story specs to Behat features

11 years agodependencies: replace phpunit-story with behat
scribu [Sat, 16 Feb 2013 21:23:23 +0000 (23:23 +0200)]
dependencies: replace phpunit-story with behat

11 years agomove db commands to Command_Runner
scribu [Sat, 16 Feb 2013 20:55:48 +0000 (22:55 +0200)]
move db commands to Command_Runner

11 years agoDon't check if php://stdin is_file
goldenapples [Fri, 15 Feb 2013 20:59:13 +0000 (12:59 -0800)]
Don't check if php://stdin is_file

It'll let you down every time.

11 years agoAdd filename completion for `wp post create` command
goldenapples [Fri, 15 Feb 2013 01:28:08 +0000 (17:28 -0800)]
Add filename completion for `wp post create` command

Uses bash default filename completion for `wp post create`

11 years agoUpdate man page for `wp post create`
goldenapples [Fri, 15 Feb 2013 18:29:04 +0000 (10:29 -0800)]
Update man page for `wp post create`

Still can't get synopsis to render correctly though. After adding
optional positional argument to synopsis, all calls generate an 'unknown
parameter' warning.

11 years agoAllow `wp post create` to read from file or STDIN
goldenapples [Fri, 15 Feb 2013 00:18:59 +0000 (16:18 -0800)]
Allow `wp post create` to read from file or STDIN

If a filename is passed as the first argument to `wp post create`, that
file will be read for the post's content. If the first argument is '-',
then post content will be read from STDIN.

If an unreadable filename is given, `wp post create` exits with an
error.

11 years agoadd man page for wp post edit. see #302
scribu [Fri, 15 Feb 2013 00:00:54 +0000 (02:00 +0200)]
add man page for wp post edit. see #302

11 years agoMerge pull request #302 from goldenapples/system-editor
Cristi Burcă [Thu, 14 Feb 2013 23:55:54 +0000 (15:55 -0800)]
Merge pull request #302 from goldenapples/system-editor

Introduce system editor function in \WP_CLI\Utils

11 years agoWhitespace cleanup
goldenapples [Thu, 14 Feb 2013 23:34:22 +0000 (15:34 -0800)]
Whitespace cleanup

Use spaces for inner-line spacing

11 years agoMake error messages and output codes more logical
goldenapples [Thu, 14 Feb 2013 23:29:16 +0000 (15:29 -0800)]
Make error messages and output codes more logical

Use `WP_CLI::error` for any fatal errors. Output a warning rather than
an error if user aborts the editor (At this point it exits without
performing any action just like an error would, but it shouldn't be
considered an error. Also, its possible that commands using the editor
function will go on to perform other actions.)

Also, whitespace cleanup and minor refactoring... making a helper
method `_edit()` in post.php to make editor functions more reusable.

11 years agoallow whitespace before the 'require' statement in wp-config.php. see #288
scribu [Thu, 14 Feb 2013 15:09:01 +0000 (17:09 +0200)]
allow whitespace before the 'require' statement in wp-config.php. see #288

11 years agoMerge pull request #304 from nb/exit-on-eof
Cristi Burcă [Thu, 14 Feb 2013 14:35:46 +0000 (06:35 -0800)]
Merge pull request #304 from nb/exit-on-eof

Exit on end-of-file

11 years agoExit on end-of-file
Nikolay Bachiyski [Thu, 14 Feb 2013 14:28:40 +0000 (16:28 +0200)]
Exit on end-of-file

It's a common practice shells to exit on end-of-file. WP-CLI doesn't do
this.

I traced the reason to the fact we're not checking the exit code from
the `read` builtin. If it timeouts or receives end-of-file, it's
non-zero. In both these cases it makes sense to exit.

11 years agoUse file_put_contents/file_get_contents instead of fwrite/fread
goldenapples [Wed, 13 Feb 2013 23:59:24 +0000 (15:59 -0800)]
Use file_put_contents/file_get_contents instead of fwrite/fread

Much simpler this way. Also does away with the need to check for empty
output, although now we have to check the return value of
`launch_editor_for_input` strictly against false, since its possible for
it to return an empty string now (editing a post and deleting all the
content).

11 years agoHandle error caused by reading empty file
goldenapples [Wed, 13 Feb 2013 19:23:45 +0000 (11:23 -0800)]
Handle error caused by reading empty file

`fread()` will throw an error if trying to read an empty file (ie if
user deleted all post content or quit the editor on `wp post create`.
Detect that and fail gracefully.

11 years agoUse WP_CLI::launch to open editor
goldenapples [Wed, 13 Feb 2013 19:21:20 +0000 (11:21 -0800)]
Use WP_CLI::launch to open editor

Also use wp_tempnam to create file, and give the created file a
meaningful name rather than just using system or php's tempfile name.

11 years agoremove @@PHP_DIR@@ reference. see #301
scribu [Wed, 13 Feb 2013 16:43:11 +0000 (18:43 +0200)]
remove @@PHP_DIR@@ reference. see #301

11 years agoMerge pull request #300 from wp-cli/simplify-scaffolds
Cristi Burcă [Wed, 13 Feb 2013 16:39:10 +0000 (08:39 -0800)]
Merge pull request #300 from wp-cli/simplify-scaffolds

Simplify parameters for `scaffold post-type` and `scaffold taxonomy`

11 years agoregenerate manpages
scribu [Wed, 13 Feb 2013 16:19:46 +0000 (18:19 +0200)]
regenerate manpages

11 years agoremove superfluous parameters from post and taxonomy scaffolds
scribu [Wed, 13 Feb 2013 16:17:39 +0000 (18:17 +0200)]
remove superfluous parameters from post and taxonomy scaffolds

11 years agofix indenting for term command. see #286
scribu [Wed, 13 Feb 2013 15:47:05 +0000 (17:47 +0200)]
fix indenting for term command. see #286

11 years agoMerge pull request #286 from wp-cli/term-command
Cristi Burcă [Wed, 13 Feb 2013 15:29:17 +0000 (07:29 -0800)]
Merge pull request #286 from wp-cli/term-command

A term command with subcommands for creating, updating, deleting and lis...

11 years agoadd generated man pages
scribu [Wed, 13 Feb 2013 15:23:46 +0000 (17:23 +0200)]
add generated man pages