OSDN Git Service

wvm/wvm.git
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`

11 years agoexport: add smoke test
scribu [Sun, 12 May 2013 16:37:31 +0000 (19:37 +0300)]
export: add smoke test

11 years agoexport: document --verbose parameter
scribu [Sun, 12 May 2013 16:29:34 +0000 (19:29 +0300)]
export: document --verbose parameter

[ci skip]

11 years agoexport: show parameters sent to export_wp() only if --verbose is set
scribu [Sun, 12 May 2013 16:26:55 +0000 (19:26 +0300)]
export: show parameters sent to export_wp() only if --verbose is set

11 years agoexport: more indentation fixes
scribu [Sun, 12 May 2013 16:25:31 +0000 (19:25 +0300)]
export: more indentation fixes

11 years agomake is_absolute_path() work on Windows paths
scribu [Sun, 12 May 2013 13:37:13 +0000 (16:37 +0300)]
make is_absolute_path() work on Windows paths

fixes #447

11 years agoadd deprecation message for WP_CLI::addCommand()
scribu [Sun, 12 May 2013 13:22:29 +0000 (16:22 +0300)]
add deprecation message for WP_CLI::addCommand()

closes #448

11 years agostop after finding the first Composer autoloader.
scribu [Sat, 11 May 2013 21:11:04 +0000 (00:11 +0300)]
stop after finding the first Composer autoloader.

Otherwise, could get fatal errors, such as "Cannot redeclare
cli\register_autoload()".

Unfortunately, this also means that suggested packages will be ignored,
if there's a local vendor dir present.

11 years agoautoload from local vendor dir, then from global
scribu [Sat, 11 May 2013 20:28:24 +0000 (23:28 +0300)]
autoload from local vendor dir, then from global

This allows running `composer update` on the spot and without switching the wp-cli repo
back to the master branch.

This also allows using suggested packages from a super-project (most
common being ~/.composer).

11 years agoswitch back to our fork of php-cli-tools
scribu [Sat, 11 May 2013 20:27:19 +0000 (23:27 +0300)]
switch back to our fork of php-cli-tools

11 years agosimplify 'file should exist' step definition
scribu [Fri, 10 May 2013 22:03:35 +0000 (01:03 +0300)]
simplify 'file should exist' step definition

11 years agoAdded CPT creation
jmslbam [Thu, 9 May 2013 16:20:27 +0000 (18:20 +0200)]
Added CPT creation

11 years agoUsing stylesheetpath because it gets them path and active theme at once
jmslbam [Thu, 9 May 2013 00:39:02 +0000 (02:39 +0200)]
Using stylesheetpath because it gets them path and active theme at once

11 years agoAdded CPT and TAX --flags test and TAX --theme test
jmslbam [Mon, 22 Apr 2013 22:50:10 +0000 (00:50 +0200)]
Added CPT and TAX --flags test and TAX --theme test

11 years agoMerge pull request #442 from tolgap/master
Cristi Burcă [Fri, 10 May 2013 17:56:11 +0000 (10:56 -0700)]
Merge pull request #442 from tolgap/master

Implement list command for theme and plugin

11 years agoForce the version field if not exist so it shows up in the table
tolgap [Fri, 10 May 2013 13:16:31 +0000 (15:16 +0200)]
Force the version field if not exist so it shows up in the table

11 years agoMerge pull request #443 from wp-cli/refactor-debug-mode
Cristi Burcă [Thu, 9 May 2013 22:03:56 +0000 (15:03 -0700)]
Merge pull request #443 from wp-cli/refactor-debug-mode

Refactor debug mode

11 years agonever display PHP errors on STDOUT
scribu [Thu, 9 May 2013 21:39:15 +0000 (00:39 +0300)]
never display PHP errors on STDOUT

11 years agodefine WP_DEBUG in Utils\wp_debug_mode()
scribu [Thu, 9 May 2013 20:23:58 +0000 (23:23 +0300)]
define WP_DEBUG in Utils\wp_debug_mode()

11 years agobehat: set up WP file cache only once, before suite
scribu [Thu, 9 May 2013 20:54:58 +0000 (23:54 +0300)]
behat: set up WP file cache only once, before suite

Also, use run_check() to catch download errors. see #441

11 years agoexport: minor whitespace fixes
scribu [Thu, 9 May 2013 18:02:00 +0000 (21:02 +0300)]
export: minor whitespace fixes

11 years agofirst pass at --verbose flag for `wp export`
scribu [Thu, 9 May 2013 17:53:47 +0000 (20:53 +0300)]
first pass at --verbose flag for `wp export`

11 years agoAdded functional tests for the plugin and theme list command
tolgap [Thu, 9 May 2013 14:41:08 +0000 (16:41 +0200)]
Added functional tests for the plugin and theme list command

11 years agoGenerated man pages for the list commands
tolgap [Thu, 9 May 2013 14:30:28 +0000 (16:30 +0200)]
Generated man pages for the list commands

11 years agoMatch arguments of parent function
tolgap [Thu, 9 May 2013 14:26:24 +0000 (16:26 +0200)]
Match arguments of parent function

11 years agoImplemented 'list' command for theme and plugin command, issue #440
tolgap [Thu, 9 May 2013 11:32:16 +0000 (13:32 +0200)]
Implemented 'list' command for theme and plugin command, issue #440

11 years agoRevert "don't load cli/cli.php utilities (unused)"
scribu [Thu, 9 May 2013 10:11:55 +0000 (13:11 +0300)]
Revert "don't load cli/cli.php utilities (unused)"

It's used internally by cli\Table.

This reverts commit e46e6ec9d7af558580f77091316079f4c534c74a.

11 years agodon't load cli/cli.php utilities (unused)
scribu [Thu, 9 May 2013 10:04:02 +0000 (13:04 +0300)]
don't load cli/cli.php utilities (unused)

11 years agoMerge pull request #408 from wp-cli/fields-argument
Cristi Burcă [Wed, 8 May 2013 23:59:50 +0000 (16:59 -0700)]
Merge pull request #408 from wp-cli/fields-argument

A `--fields` argument

11 years agoUpdate man docs to mention `--fields`
Daniel Bachhuber [Wed, 8 May 2013 23:42:37 +0000 (16:42 -0700)]
Update man docs to mention `--fields`

11 years agoUpdate term.feature to make use of `--fields` argument
Daniel Bachhuber [Wed, 8 May 2013 23:23:08 +0000 (16:23 -0700)]
Update term.feature to make use of `--fields` argument

11 years agoUpdate post.feature to test new `--fields` argument
Daniel Bachhuber [Wed, 8 May 2013 23:06:19 +0000 (16:06 -0700)]
Update post.feature to test new `--fields` argument

11 years agoRevert parts of 3500a184e5ca652370fdaa7e2c2217290fadf69c.
Daniel Bachhuber [Wed, 8 May 2013 23:01:19 +0000 (16:01 -0700)]
Revert parts of 3500a184e5ca652370fdaa7e2c2217290fadf69c.

Changing the order in which arguments are passed will break community use of this helper function.

See https://github.com/wp-cli/wp-cli/commit/3500a184e5ca652370fdaa7e2c2217290fadf69c#commitcomment-3174323

11 years agoMerge branch 'master' into fields-argument
Daniel Bachhuber [Wed, 8 May 2013 22:48:27 +0000 (15:48 -0700)]
Merge branch 'master' into fields-argument

Conflicts:
php/commands/post.php

11 years agochange exit code when Composer packages aren't installed
scribu [Wed, 8 May 2013 20:55:34 +0000 (23:55 +0300)]
change exit code when Composer packages aren't installed

2 is a reserved exit code:

http://tldp.org/LDP/abs/html/exitcodes.html

11 years agofix path to cli-tools package
scribu [Wed, 8 May 2013 20:52:02 +0000 (23:52 +0300)]
fix path to cli-tools package

11 years agoBump required PHP version to 5.3.2
scribu [Wed, 8 May 2013 20:43:09 +0000 (23:43 +0300)]
Bump required PHP version to 5.3.2

We depend on Composer and Composer doesn't work wit anything below that.

This also allows us to move back to the upstream php-cli-tools package.

11 years agoMerge pull request #437 from wp-cli/boris
Cristi Burcă [Wed, 8 May 2013 20:16:02 +0000 (13:16 -0700)]
Merge pull request #437 from wp-cli/boris

Use Boris to power `wp shell`

fixes #292 and #316

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 agomake the $fields property private
scribu [Mon, 6 May 2013 21:41:33 +0000 (00:41 +0300)]
make the $fields property private

there really isn't any use for it outside of its own class

11 years agorefactor Post_Command::_list()
scribu [Mon, 6 May 2013 21:38:07 +0000 (00:38 +0300)]
refactor Post_Command::_list()

11 years agomake $items the first parameter in format_items()
scribu [Mon, 6 May 2013 21:27:29 +0000 (00:27 +0300)]
make $items the first parameter in format_items()

The idea is that $items is in fact the most important value, guaranteed
to be mandatory, whereas $format and $fields could be optional.

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