OSDN Git Service

wvm/wvm.git
11 years agodon't install Boris in dev-build, since it alters the git repo
scribu [Wed, 8 May 2013 20:05:26 +0000 (23:05 +0300)]
don't install Boris in dev-build, since it alters the git repo

11 years agoshell: re-generate man page
scribu [Wed, 8 May 2013 20:03:18 +0000 (23:03 +0300)]
shell: re-generate man page

[ci skip]

11 years agotravis: force-install Boris, for smoke testing
scribu [Wed, 8 May 2013 18:12:56 +0000 (21:12 +0300)]
travis: force-install Boris, for smoke testing

11 years agoshell: remove superfluous exit instructions
scribu [Wed, 8 May 2013 18:08:36 +0000 (21:08 +0300)]
shell: remove superfluous exit instructions

11 years agomake Boris a suggested package
scribu [Wed, 8 May 2013 13:45:12 +0000 (16:45 +0300)]
make Boris a suggested package

11 years agoshell: remove Boris tests
scribu [Wed, 8 May 2013 13:17:42 +0000 (16:17 +0300)]
shell: remove Boris tests

they belong in the Boris repo

11 years agoshell man: remove note about backslashes
scribu [Wed, 8 May 2013 13:06:39 +0000 (16:06 +0300)]
shell man: remove note about backslashes

Backslashes are needed only in basic mode.

11 years agoshell: remove support for 'history' builtin
scribu [Wed, 8 May 2013 13:03:04 +0000 (16:03 +0300)]
shell: remove support for 'history' builtin

1. The syntax felt kind of inconsistent.
2. Boris doesn't support it.
3. It didn't ship with a stable release, so not many people know about
it.

see #373

11 years agoshell: use var_dump(), to better match Boris output
scribu [Wed, 8 May 2013 12:57:13 +0000 (15:57 +0300)]
shell: use var_dump(), to better match Boris output

11 years agofix shell tests
scribu [Wed, 8 May 2013 12:49:33 +0000 (15:49 +0300)]
fix shell tests

11 years agoremove support for $_ special variable, since Boris doesn't support it.
scribu [Wed, 8 May 2013 12:10:12 +0000 (15:10 +0300)]
remove support for $_ special variable, since Boris doesn't support it.

11 years agoadd --basic flag to `wp shell` command
scribu [Wed, 8 May 2013 12:06:46 +0000 (15:06 +0300)]
add --basic flag to `wp shell` command

11 years agofall back to old REPL implementation if Boris is not available
scribu [Wed, 8 May 2013 11:48:02 +0000 (14:48 +0300)]
fall back to old REPL implementation if Boris is not available

11 years agoadd Boris as a dependency and use it instead of homegrown REPL
scribu [Wed, 8 May 2013 11:17:39 +0000 (14:17 +0300)]
add Boris as a dependency and use it instead of homegrown REPL

11 years agomove REPL implementation to separate class
scribu [Wed, 8 May 2013 11:09:55 +0000 (14:09 +0300)]
move REPL implementation to separate class

11 years agoremove invalid assoc args before. fixes #436
scribu [Mon, 6 May 2013 20:52:38 +0000 (23:52 +0300)]
remove invalid assoc args before. fixes #436

11 years agofix SynopsisParser::validate_args() not finding the WP_CLI class
scribu [Mon, 6 May 2013 20:28:26 +0000 (23:28 +0300)]
fix SynopsisParser::validate_args() not finding the WP_CLI class

11 years agoadd some unit tests for argument validation methods
scribu [Mon, 6 May 2013 20:14:04 +0000 (23:14 +0300)]
add some unit tests for argument validation methods

11 years agoadd empty arrays, to avoid notices
scribu [Mon, 6 May 2013 19:53:26 +0000 (22:53 +0300)]
add empty arrays, to avoid notices

11 years agoargument validation: separate logic from presentation
scribu [Mon, 6 May 2013 19:26:17 +0000 (22:26 +0300)]
argument validation: separate logic from presentation

also, show warning when an optional assoc param doesn't have a value

see #436

11 years agooutut a single error message, instead of multiple warnings
scribu [Fri, 3 May 2013 22:30:14 +0000 (01:30 +0300)]
outut a single error message, instead of multiple warnings

fixes #114

11 years agobehat: remove unused step definition. see #434
scribu [Fri, 3 May 2013 22:14:50 +0000 (01:14 +0300)]
behat: remove unused step definition. see #434

11 years agoMerge pull request #434 from wp-cli/fix-434
Cristi Burcă [Fri, 3 May 2013 22:12:12 +0000 (15:12 -0700)]
Merge pull request #434 from wp-cli/fix-434

Behat: "Given a google-sitemap-generator-cli plugin:" step broken

11 years agogenerate test plugin on the fly, instead of downloading one from github
scribu [Fri, 3 May 2013 22:01:32 +0000 (01:01 +0300)]
generate test plugin on the fly, instead of downloading one from github

11 years agobehat: be more verbose when a command fails
scribu [Fri, 3 May 2013 22:00:07 +0000 (01:00 +0300)]
behat: be more verbose when a command fails

11 years agobehat: set different db prefix for subdir install
scribu [Fri, 3 May 2013 20:57:40 +0000 (23:57 +0300)]
behat: set different db prefix for subdir install

11 years agobehat: introduce Process class
scribu [Fri, 3 May 2013 18:45:09 +0000 (21:45 +0300)]
behat: introduce Process class

The run_check() method is a shortcut for implicitly checking that a
command runs succesfully.

11 years agobehat: merge _run() and run() methods
scribu [Fri, 3 May 2013 18:02:53 +0000 (21:02 +0300)]
behat: merge _run() and run() methods

11 years agoadd missing dots to blog subcommand descriptions
scribu [Fri, 3 May 2013 16:55:38 +0000 (19:55 +0300)]
add missing dots to blog subcommand descriptions

see #410

11 years agoremove empty constructor from MS_Blog_Command
scribu [Fri, 3 May 2013 15:50:51 +0000 (18:50 +0300)]
remove empty constructor from MS_Blog_Command

see #416 and #410

11 years agoMerge pull request #410 from tlovett1/feature/blog-empty
Cristi Burcă [Wed, 1 May 2013 22:17:43 +0000 (15:17 -0700)]
Merge pull request #410 from tlovett1/feature/blog-empty

Empty blog subcommand

11 years agoAdd docblock mention for --yes flag
Taylor Lovett [Wed, 1 May 2013 17:14:06 +0000 (17:14 +0000)]
Add docblock mention for --yes flag

11 years agoRename multisite.feature to blog.feature; add feature tests for wp blog empty
Taylor Lovett [Wed, 1 May 2013 17:07:09 +0000 (17:07 +0000)]
Rename multisite.feature to blog.feature; add feature tests for wp blog empty

11 years agoMerge pull request #429 from tolgap/master
Cristi Burcă [Wed, 1 May 2013 11:32:27 +0000 (04:32 -0700)]
Merge pull request #429 from tolgap/master

Ability to show version in wp plugin status

11 years agoShow version on wp theme status by default
tolgap [Wed, 1 May 2013 07:17:23 +0000 (09:17 +0200)]
Show version on wp theme status by default

11 years agoMerge pull request #432 from wp-cli/shell-multiline
Cristi Burcă [Tue, 30 Apr 2013 16:58:42 +0000 (09:58 -0700)]
Merge pull request #432 from wp-cli/shell-multiline

Add multiline support to `wp shell` via backslash

11 years agoupdate shell man page
scribu [Tue, 30 Apr 2013 16:53:22 +0000 (19:53 +0300)]
update shell man page

[ci skip]

11 years agoAdd multiline support to `wp shell` via backslash
scribu [Tue, 30 Apr 2013 16:37:47 +0000 (19:37 +0300)]
Add multiline support to `wp shell` via backslash

We could remove the -r flag from the `read` builtin, but that would have
several drawbacks:

* couldn't dynamically change the prompt
* would add another layer of escaping, on top of PHP's eval()

11 years agoMerge pull request #430 from wp-cli/shell-tests
Cristi Burcă [Tue, 30 Apr 2013 15:49:29 +0000 (08:49 -0700)]
Merge pull request #430 from wp-cli/shell-tests

Functional tests for `wp shell`

11 years agoadd test for 'history' builtin; see #373
scribu [Tue, 30 Apr 2013 15:26:28 +0000 (18:26 +0300)]
add test for 'history' builtin; see #373

11 years agotest declaring functions and variables in a shell session
scribu [Tue, 30 Apr 2013 15:17:22 +0000 (18:17 +0300)]
test declaring functions and variables in a shell session

11 years agotravis: don't send email notifications on success
scribu [Tue, 30 Apr 2013 15:02:02 +0000 (18:02 +0300)]
travis: don't send email notifications on success

Branches always go through pull requests, which give plenty of feedback
about the build status.

11 years agobehat: add newline to generated files
scribu [Tue, 30 Apr 2013 14:26:51 +0000 (17:26 +0300)]
behat: add newline to generated files

`wp shell` expects it

11 years agoshell: use WP_CLI::print_value(), since we don't want to colorize the output
scribu [Tue, 30 Apr 2013 14:21:48 +0000 (17:21 +0300)]
shell: use WP_CLI::print_value(), since we don't want to colorize the output

11 years agoadd basic shell smoke test
scribu [Tue, 30 Apr 2013 13:55:01 +0000 (16:55 +0300)]
add basic shell smoke test

11 years agoCheck empty version for mu-plugins, remove unnecessary formatting
tolgap [Tue, 30 Apr 2013 09:39:58 +0000 (11:39 +0200)]
Check empty version for mu-plugins, remove unnecessary formatting

11 years agoshow version default, remove color from version and align left
tolgap [Mon, 29 Apr 2013 23:05:19 +0000 (01:05 +0200)]
show version default, remove color from version and align left

11 years agoFixed issue #428. Ability to display version for plugin status
tolgap [Mon, 29 Apr 2013 21:12:32 +0000 (23:12 +0200)]
Fixed issue #428. Ability to display version for plugin status

11 years agoMerge pull request #55 from wp-cli/query-from-stdin
Cristi Burcă [Mon, 29 Apr 2013 18:44:53 +0000 (11:44 -0700)]
Merge pull request #55 from wp-cli/query-from-stdin

Make `wp db query` accept a file or STDIN

11 years agoman: add `wp db query` example
scribu [Mon, 29 Apr 2013 18:13:37 +0000 (21:13 +0300)]
man: add `wp db query` example

11 years agodb query: select database
scribu [Mon, 29 Apr 2013 18:08:34 +0000 (21:08 +0300)]
db query: select database

Also, let WP_CLI::launch() proxy STDIN, instead of reading it
explicitly.

11 years agotest that database is selected
scribu [Mon, 29 Apr 2013 17:46:52 +0000 (20:46 +0300)]
test that database is selected

11 years agomake `wp db query` optionally read from STDIN
scribu [Mon, 29 Apr 2013 15:36:25 +0000 (18:36 +0300)]
make `wp db query` optionally read from STDIN

11 years agosince it's called dev-build, install the development dependencies
scribu [Mon, 29 Apr 2013 17:41:03 +0000 (20:41 +0300)]
since it's called dev-build, install the development dependencies

11 years agorename create_cmd() to esc_cmd()
scribu [Mon, 29 Apr 2013 16:38:51 +0000 (19:38 +0300)]
rename create_cmd() to esc_cmd()

Matches WP escaping functions: esc_sql(), esc_html() etc.

11 years agocore command: "use WP_CLI\Utils;"
scribu [Mon, 29 Apr 2013 16:31:45 +0000 (19:31 +0300)]
core command: "use WP_CLI\Utils;"

11 years agocore download: refactor curl + tar into a single command string
scribu [Mon, 29 Apr 2013 16:29:55 +0000 (19:29 +0300)]
core download: refactor curl + tar into a single command string

11 years agocore download: remove duplicate code for creating the directory
scribu [Mon, 29 Apr 2013 16:22:31 +0000 (19:22 +0300)]
core download: remove duplicate code for creating the directory

11 years agoUse `wp core download` in Travis tests too.
scribu [Mon, 29 Apr 2013 15:58:33 +0000 (18:58 +0300)]
Use `wp core download` in Travis tests too.

11 years agoRename `wp db connect` back to `wp db cli`
scribu [Mon, 29 Apr 2013 15:16:26 +0000 (18:16 +0300)]
Rename `wp db connect` back to `wp db cli`

`db connect` is rather ambigous: you connect to the database, and then
what?!

`db cli` is more explicit: connect to the database and open a MySQL command-line session

11 years agoMerge pull request #422 from wp-cli/post-list-status
Cristi Burcă [Mon, 29 Apr 2013 11:50:50 +0000 (04:50 -0700)]
Merge pull request #422 from wp-cli/post-list-status

Ensure `wp post list` returns posts of all statuses by default

11 years agoadd post_status to `wp post list` output
scribu [Mon, 29 Apr 2013 11:45:00 +0000 (14:45 +0300)]
add post_status to `wp post list` output

11 years agoTest: `wp post list` should contain both 'draft' and 'publish' posts
Daniel Bachhuber [Mon, 29 Apr 2013 02:38:22 +0000 (19:38 -0700)]
Test: `wp post list` should contain both 'draft' and 'publish' posts

11 years agoRefactor checkThatCsvStringContainsCsvString() such that:
Daniel Bachhuber [Mon, 29 Apr 2013 02:34:06 +0000 (19:34 -0700)]
Refactor checkThatCsvStringContainsCsvString() such that:
* expected CSV can be in any row of the actual CSV
* actual CSV must contain all expected CSV data rows

11 years agoBehat step for checking a CSV contains string
Daniel Bachhuber [Mon, 29 Apr 2013 01:44:39 +0000 (18:44 -0700)]
Behat step for checking a CSV contains string

11 years agoFix typo
Daniel Bachhuber [Mon, 29 Apr 2013 01:07:39 +0000 (18:07 -0700)]
Fix typo

11 years agoMerge pull request #421 from wp-cli/update-composer-lock
Cristi Burcă [Sun, 28 Apr 2013 20:33:33 +0000 (13:33 -0700)]
Merge pull request #421 from wp-cli/update-composer-lock

Update composer.lock to latest

11 years agoUpdate composer.lock to latest
Daniel Bachhuber [Sun, 28 Apr 2013 00:17:31 +0000 (17:17 -0700)]
Update composer.lock to latest

11 years agoEnsure `wp post list` returns posts of all statuses by default, as WP_Query behaves...
Daniel Bachhuber [Sat, 27 Apr 2013 23:57:55 +0000 (16:57 -0700)]
Ensure `wp post list` returns posts of all statuses by default, as WP_Query behaves differently in the WP_ADMIN context.

See #412

11 years agoUpdate man pages
Taylor Lovett [Sat, 27 Apr 2013 17:36:50 +0000 (17:36 +0000)]
Update man pages

11 years agovalidate --post_id only once and issue warning
scribu [Sat, 27 Apr 2013 10:38:17 +0000 (13:38 +0300)]
validate --post_id only once and issue warning

see #367

11 years agonested ternary operators are bad, mkay...
scribu [Sat, 27 Apr 2013 10:33:55 +0000 (13:33 +0300)]
nested ternary operators are bad, mkay...

see #367

11 years agoShorten description for `wp media import`
scribu [Sat, 27 Apr 2013 10:32:13 +0000 (13:32 +0300)]
Shorten description for `wp media import`

see #367

11 years agoMerge pull request #367 from goldenapples/goldenapples/media-import
Cristi Burcă [Sat, 27 Apr 2013 09:34:46 +0000 (02:34 -0700)]
Merge pull request #367 from goldenapples/goldenapples/media-import

Implement `wp media import` command

11 years agoUse variables in feature steps for readability
goldenapples [Fri, 26 Apr 2013 23:55:36 +0000 (16:55 -0700)]
Use variables in feature steps for readability

Rewrote the feature step so that it displays the actual command being
run, and uses variable substitution.

* I had to modify the definition of the "file should exist" step to
  allow variable substitution. All of the existing tests still pass, but
  I'm not sure if this is best practice. I can write a new step instead,
  if that makes more sense.

11 years agoadd functional test for --require flag
scribu [Fri, 26 Apr 2013 22:38:49 +0000 (01:38 +0300)]
add functional test for --require flag

11 years agoAdd behat features to test against local files
goldenapples [Fri, 26 Apr 2013 22:32:50 +0000 (15:32 -0700)]
Add behat features to test against local files

One test for failure on trying to import non-existant image,
and one to make sure that local images are not removed on import

11 years agoFor local media imports, copy to tempfile before importing
goldenapples [Fri, 26 Apr 2013 21:39:04 +0000 (14:39 -0700)]
For local media imports, copy to tempfile before importing

Apparently `wp_handle_sideload` performs a`rename()` operation on the
file it's sideloading. In this case thats an unexpected side effect -
you don't want the original image to go away when importing it to
WordPress.

11 years agodev-build: check that 'php' is available before doing anything else
scribu [Fri, 26 Apr 2013 19:29:00 +0000 (22:29 +0300)]
dev-build: check that 'php' is available before doing anything else

see #419

11 years agoMerge pull request #396 from wp-cli/uniform-cmd-add
Cristi Burcă [Fri, 26 Apr 2013 19:23:17 +0000 (12:23 -0700)]
Merge pull request #396 from wp-cli/uniform-cmd-add

Don't instantiate single command classes

11 years agomerge MethodSubcommand into Subcommand
scribu [Fri, 26 Apr 2013 18:50:59 +0000 (21:50 +0300)]
merge MethodSubcommand into Subcommand

11 years agoinstantiate MethodSubcommand instead of Subcommand
scribu [Fri, 26 Apr 2013 18:32:28 +0000 (21:32 +0300)]
instantiate MethodSubcommand instead of Subcommand

11 years agoremove unnecessary WP_CLI\Commands namespace
scribu [Fri, 26 Apr 2013 18:27:09 +0000 (21:27 +0300)]
remove unnecessary WP_CLI\Commands namespace

11 years agocheck for __invoke() method instead of parameter type
scribu [Fri, 26 Apr 2013 17:43:10 +0000 (20:43 +0300)]
check for __invoke() method instead of parameter type

11 years agoUpdate man page for `wp media import`
goldenapples [Thu, 25 Apr 2013 20:22:03 +0000 (13:22 -0700)]
Update man page for `wp media import`

Add option description for `--featured_image`, and briefly explain examples

11 years agoAdd `--featured_image` associative arg
goldenapples [Thu, 25 Apr 2013 19:40:29 +0000 (12:40 -0700)]
Add `--featured_image` associative arg

This flag will set the uploaded image to be the post thumbnail of the
post its attached to.

Also, fix the success message and the Behat feature, so that tests don't
fail on environments that use a different tmp path.

11 years agoAdd Behat feature for `wp media import`
goldenapples [Thu, 18 Apr 2013 00:01:53 +0000 (17:01 -0700)]
Add Behat feature for `wp media import`

11 years agoRename arguments to make more logical sense
goldenapples [Thu, 28 Mar 2013 17:21:07 +0000 (10:21 -0700)]
Rename arguments to make more logical sense

Use the same field labels as are used by the admin media uploader, to
avoid confusion: title / caption / alt / description; rather than the
variable names used internally, where 'description' is really title and
so on.

11 years agoRemove filename completion for wp media import
goldenapples [Thu, 28 Mar 2013 17:19:28 +0000 (10:19 -0700)]
Remove filename completion for wp media import

Filtering bash completions breaks bash's default filename globbing,
which is a more useful feature here.

11 years agoAdd capability to download files from URL
goldenapples [Thu, 28 Mar 2013 00:24:51 +0000 (17:24 -0700)]
Add capability to download files from URL

If a recognizable scheme is passed in the <file> argument, `wp media
import` will attempt to download the file to a temp directory before
importing it.

11 years agoInitial implementation of wp media import
goldenapples [Wed, 27 Mar 2013 22:03:45 +0000 (15:03 -0700)]
Initial implementation of wp media import

Introduces `wp media import` command to sideload images and import
them as attachments. Needs tests, second opinion, etc.

11 years agoRemove empty subcommands args; move empty terms/taxes, posts, and comments; insert...
Taylor Lovett [Thu, 25 Apr 2013 02:57:17 +0000 (02:57 +0000)]
Remove empty subcommands args; move empty terms/taxes, posts, and comments; insert default terms/taxes

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 agoDefine WP_ADMIN before loading WordPress
scribu [Tue, 23 Apr 2013 16:39:21 +0000 (19:39 +0300)]
Define WP_ADMIN before loading WordPress

... where "loading WordPress" also includes loading plugins and themes.

Also, define WP_NETWORK_ADMIN and WP_USER_ADMIN, for completeness.

see #385

11 years agoMerge pull request #407 from wp-cli/term-create-porcelain
Cristi Burcă [Tue, 23 Apr 2013 14:07:19 +0000 (07:07 -0700)]
Merge pull request #407 from wp-cli/term-create-porcelain

Improvements to `wp term` output

11 years agoSimulate and announce a /wp-admin/ page load
scribu [Tue, 23 Apr 2013 13:42:50 +0000 (16:42 +0300)]
Simulate and announce a /wp-admin/ page load

Most of the built-in commands need access to code from
wp-admin/includes/ so it makes sense to load it upfront.

Since we're already doing that, it seems like a good idea to also
announce this fact to plugins, by setting WP_ADMIN to true.

And since we're setting WP_ADMIN to true, we don't need to set up the
global $wp_query instance anymore, because the only admin screen where
it's set is the post list screen (wp-admin/edit.php).

See #385

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