OSDN Git Service

wvm/wvm.git
11 years agobehat: hide export warnings
scribu [Fri, 12 Jul 2013 00:50:59 +0000 (03:50 +0300)]
behat: hide export warnings

11 years agosuppress curl download meter if not running interactively
scribu [Thu, 11 Jul 2013 22:24:32 +0000 (01:24 +0300)]
suppress curl download meter if not running interactively

11 years agodon't show progress bar if not in a TTY
scribu [Fri, 21 Jun 2013 13:02:24 +0000 (16:02 +0300)]
don't show progress bar if not in a TTY

this fixes 'tput: No value for $TERM and no -T specified' error

11 years agobehat: fix `user generate` test
scribu [Fri, 21 Jun 2013 13:36:39 +0000 (16:36 +0300)]
behat: fix `user generate` test

11 years agobehat: no-op wp_mail()
scribu [Thu, 11 Jul 2013 23:56:53 +0000 (02:56 +0300)]
behat: no-op wp_mail()

11 years agobehat: make run_check() check STDERR
scribu [Fri, 21 Jun 2013 11:19:38 +0000 (14:19 +0300)]
behat: make run_check() check STDERR

11 years agorename _download() to _read() to make it clearer that it doesn't deal with binary...
scribu [Thu, 11 Jul 2013 22:19:38 +0000 (01:19 +0300)]
rename _download() to _read() to make it clearer that it doesn't deal with binary data

11 years agomedia: make the temp file have the proper extension from the start
scribu [Thu, 11 Jul 2013 20:51:12 +0000 (23:51 +0300)]
media: make the temp file have the proper extension from the start

11 years agomedia: don't call get_post() if --post_id isn't even passed
scribu [Thu, 11 Jul 2013 21:04:47 +0000 (00:04 +0300)]
media: don't call get_post() if --post_id isn't even passed

11 years agocode formatting fixes in media.php
scribu [Thu, 11 Jul 2013 20:26:53 +0000 (23:26 +0300)]
code formatting fixes in media.php

11 years agoFix notices no index featured_image
jmslbam [Thu, 11 Jul 2013 18:54:56 +0000 (20:54 +0200)]
Fix notices no index featured_image

11 years agoMerge pull request #476 from wp-cli/force-install-476
Cristi Burcă [Wed, 10 Jul 2013 12:01:47 +0000 (05:01 -0700)]
Merge pull request #476 from wp-cli/force-install-476

Support for `--force` flag when installing plugins or themes

11 years agosimplify logic for theme and plugin installs
scribu [Wed, 10 Jul 2013 11:15:29 +0000 (14:15 +0300)]
simplify logic for theme and plugin installs

11 years agoleverage 'clear_destination' parameter from WP_Upgrader
scribu [Mon, 8 Jul 2013 22:19:52 +0000 (01:19 +0300)]
leverage 'clear_destination' parameter from WP_Upgrader

11 years agoMerge branch 'master' into force-install
scribu [Mon, 8 Jul 2013 18:43:31 +0000 (21:43 +0300)]
Merge branch 'master' into force-install

11 years agotheme: parse_name() only needs the first argument
scribu [Mon, 8 Jul 2013 18:23:35 +0000 (21:23 +0300)]
theme: parse_name() only needs the first argument

11 years agoplugin: parse_name() only needs the first arg and only needs to return
scribu [Mon, 8 Jul 2013 18:07:10 +0000 (21:07 +0300)]
plugin: parse_name() only needs the first arg and only needs to return
the filename.

It accepted the whole arguments initially because it used to check if
the slug was missing. This is handled by the synopsis validator now,
beforehand.

11 years agomake parse_name a private function, since it's not used in CommandWithUpgrade
scribu [Mon, 8 Jul 2013 17:36:13 +0000 (20:36 +0300)]
make parse_name a private function, since it's not used in CommandWithUpgrade

also, each implementation returns different things

11 years agodocument --force flag
scribu [Mon, 8 Jul 2013 15:56:14 +0000 (18:56 +0300)]
document --force flag

11 years agoreplace --yes with --force
scribu [Mon, 8 Jul 2013 15:51:58 +0000 (18:51 +0300)]
replace --yes with --force

11 years agoMerge pull request #576 from eugeneware/fix_core_init_tests
Cristi Burcă [Mon, 8 Jul 2013 10:37:37 +0000 (03:37 -0700)]
Merge pull request #576 from eugeneware/fix_core_init_tests

don't hard code localhost in wp core init-tests

11 years agofix travis.yml
Eugene Ware [Mon, 8 Jul 2013 10:32:57 +0000 (20:32 +1000)]
fix travis.yml

11 years agoMerge branch 'master' into force-install-476
Daniel Bachhuber [Mon, 8 Jul 2013 09:49:41 +0000 (10:49 +0100)]
Merge branch 'master' into force-install-476

Conflicts:
features/theme.feature
php/commands/plugin.php
php/commands/theme.php

11 years agoioption fixes
Eugene Ware [Mon, 8 Jul 2013 09:48:16 +0000 (19:48 +1000)]
ioption fixes

11 years agoForce install Akismet, as it comes with a default WordPress install.
Daniel Bachhuber [Mon, 8 Jul 2013 09:44:47 +0000 (10:44 +0100)]
Force install Akismet, as it comes with a default WordPress install.

11 years agoremove :
Eugene Ware [Mon, 8 Jul 2013 08:15:03 +0000 (18:15 +1000)]
remove :

11 years agoternary -> if else
Eugene Ware [Mon, 8 Jul 2013 08:11:38 +0000 (18:11 +1000)]
ternary -> if else

11 years agoadd comments to examples for plugin/theme install
scribu [Mon, 8 Jul 2013 08:06:30 +0000 (11:06 +0300)]
add comments to examples for plugin/theme install

see #581

11 years agoMerge pull request #581 from om4james/zipfiles
Cristi Burcă [Mon, 8 Jul 2013 08:02:08 +0000 (01:02 -0700)]
Merge pull request #581 from om4james/zipfiles

Bug fix: allow plugins and themes to be installed from zip file URLs that contain GET parameters

11 years agoman-src updates for #581
James Collins [Mon, 8 Jul 2013 07:55:25 +0000 (17:55 +1000)]
man-src updates for #581

11 years agobehat: upgradables comment updates
James Collins [Mon, 8 Jul 2013 07:32:01 +0000 (17:32 +1000)]
behat: upgradables comment updates

11 years agoMerge branch 'master' into zipfiles
James Collins [Mon, 8 Jul 2013 00:21:17 +0000 (10:21 +1000)]
Merge branch 'master' into zipfiles

Conflicts:
features/steps/basic_steps.php

11 years agobehat: Convert duplicate plugin/theme tests to scenario outlines
James Collins [Sun, 7 Jul 2013 23:54:53 +0000 (09:54 +1000)]
behat: Convert duplicate plugin/theme tests to scenario outlines

Converts the plugin/theme tests added in e749f71 to Behat's scenario outlines (http://docs.behat.org/guides/1.gherkin.html#scenario-outlines), which removes test duplication.

vendor/bin/behat features/upgradables.feature --expand

11 years agoMerge remote-tracking branch 'upstream/master' into zipfiles
James Collins [Sun, 7 Jul 2013 23:10:08 +0000 (09:10 +1000)]
Merge remote-tracking branch 'upstream/master' into zipfiles

Changes: https://github.com/wp-cli/wp-cli/compare/fbaab715...498fb6

behat: replace 'a large image file' step with a more generic and explicit 'download' step

11 years agoUpdate stories to support b07154e. Behat isn't working properly on my local machine...
Daniel Bachhuber [Sun, 7 Jul 2013 19:08:12 +0000 (20:08 +0100)]
Update stories to support b07154e. Behat isn't working properly on my local machine bcause of my shoddy connection, so let's see if this passes in Travis

11 years agoIf a plugin or theme is already installed and the `--version` parameter is used,...
Daniel Bachhuber [Sun, 7 Jul 2013 17:58:02 +0000 (18:58 +0100)]
If a plugin or theme is already installed and the `--version` parameter is used, prompt the user to confirm they'd like it installed.

See https://github.com/wp-cli/wp-cli/pull/476#issuecomment-20354895

11 years agobehat: remove var_dump()
scribu [Sat, 6 Jul 2013 21:10:58 +0000 (23:10 +0200)]
behat: remove var_dump()

11 years agobehat: rename some helper methods
scribu [Sat, 6 Jul 2013 20:58:07 +0000 (22:58 +0200)]
behat: rename some helper methods

11 years agobehat: remove get_path() helper method
scribu [Sat, 6 Jul 2013 20:56:10 +0000 (22:56 +0200)]
behat: remove get_path() helper method

11 years agobehat: convert install_dir private property to RUN_DIR variable
scribu [Sat, 6 Jul 2013 20:45:14 +0000 (22:45 +0200)]
behat: convert install_dir private property to RUN_DIR variable

11 years agobehat: replace 'a large image file' step with a more generic and explicit 'download...
scribu [Sat, 6 Jul 2013 20:34:41 +0000 (22:34 +0200)]
behat: replace 'a large image file' step with a more generic and explicit 'download' step

11 years agoBug Fix for #581: allow plugins/themes to be installed from complex zip file URLs
James Collins [Sat, 6 Jul 2013 01:39:59 +0000 (11:39 +1000)]
Bug Fix for #581: allow plugins/themes to be installed from complex zip file URLs

This should be more reliable than the attempted fix in a12965c.

11 years agobehat: Tests to demonstraten the plugin/theme install bug in #581
James Collins [Sat, 6 Jul 2013 01:34:07 +0000 (11:34 +1000)]
behat: Tests to demonstraten the plugin/theme install bug in #581

* Install plugins from WordPress.org repository, a local zip file, and remote zip files.
* Install themes from WordPress.org repository, a local zip file, and remote zip files.

11 years agoBug fix: allow plugins and themes to be installed from zip file URLs that contain...
James Collins [Fri, 5 Jul 2013 04:16:45 +0000 (14:16 +1000)]
Bug fix: allow plugins and themes to be installed from zip file URLs that contain GET parameters

Without this bug fix, doing something like:
wp plugin install http://downloads.wordpress.org/plugin/buddypress.1.7.2.zip?test
would fail, because wp-cli wouldn't recognise that the URL contains a zip file. This is because the wp-cli code assumes that ".zip" are the last 4 characters in the URL.

With this bug fix, the .zip file detection in URLs has been improved, so the above command works as expected.

This allows (for example), plugins/themes to be installed directly from private Amazon S3 URLs (which have GET parameters in the URLs). For example:

wp plugin install 'http://s3.amazonaws.com/bucketname/plugin.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef'

Note: for complex URLs that contain ampersands, it is usually necessary to enclose the URL in single quotes.

11 years agoMerge pull request #563 from eugeneware/rewrite_fixes
Cristi Burcă [Thu, 4 Jul 2013 09:01:22 +0000 (02:01 -0700)]
Merge pull request #563 from eugeneware/rewrite_fixes

Make wp rewrite (flush|structure) generate .htaccess files properly for Apache

11 years agofix whitespace and count -> empty
Eugene Ware [Wed, 3 Jul 2013 11:51:37 +0000 (21:51 +1000)]
fix whitespace and count -> empty

11 years agouse | as sed separator
Eugene Ware [Wed, 3 Jul 2013 11:46:59 +0000 (21:46 +1000)]
use | as sed separator

11 years agodefault host to localhost
Eugene Ware [Wed, 3 Jul 2013 06:42:59 +0000 (16:42 +1000)]
default host to localhost

11 years agoenable passing through a db hostname with port, socket, etc
Eugene Ware [Wed, 3 Jul 2013 05:48:16 +0000 (15:48 +1000)]
enable passing through a db hostname with port, socket, etc

11 years agoinline sed replace that is portable across GNU linux and Mac OSX
Eugene Ware [Wed, 3 Jul 2013 05:46:38 +0000 (15:46 +1000)]
inline sed replace that is portable across GNU linux and Mac OSX

11 years agoreplace host in config file
Eugene Ware [Wed, 3 Jul 2013 02:26:57 +0000 (12:26 +1000)]
replace host in config file

11 years agodon\'t hard code localhost
Eugene Ware [Wed, 3 Jul 2013 01:42:37 +0000 (11:42 +1000)]
don\'t hard code localhost

11 years agoadd comment explaining need for apache_modules() function
Eugene Ware [Tue, 2 Jul 2013 23:44:11 +0000 (09:44 +1000)]
add comment explaining need for apache_modules() function

11 years agoinstantiate WP_CLI\Runner on demand; see #571
scribu [Tue, 2 Jul 2013 15:22:41 +0000 (17:22 +0200)]
instantiate WP_CLI\Runner on demand; see #571

This allows early commands to be defined in third-party packages.

11 years agoMention why there's no break
Daniel Bachhuber [Tue, 2 Jul 2013 13:39:46 +0000 (06:39 -0700)]
Mention why there's no break

See https://github.com/wp-cli/wp-cli/pull/476/files#r4981709

[ci-skip]

11 years agoMerge pull request #559 from wp-cli/format-count-559
Cristi Burcă [Tue, 2 Jul 2013 10:54:18 +0000 (03:54 -0700)]
Merge pull request #559 from wp-cli/format-count-559

Add --format=count to `list` subcommands

11 years agoMerge pull request #562 from eugeneware/socket_support
Cristi Burcă [Tue, 2 Jul 2013 10:43:25 +0000 (03:43 -0700)]
Merge pull request #562 from eugeneware/socket_support

support for port and socket configurations with wp core config

11 years agoUpdate user behat tests to use `--format=count`
Daniel Bachhuber [Tue, 2 Jul 2013 04:01:59 +0000 (21:01 -0700)]
Update user behat tests to use `--format=count`

11 years agoScratch, fbc4792 was because I dropped the CSV heading. Update the rest of the scenarios
Daniel Bachhuber [Tue, 2 Jul 2013 04:00:32 +0000 (21:00 -0700)]
Scratch, fbc4792 was because I dropped the CSV heading. Update the rest of the scenarios

11 years agoFix maths error
Daniel Bachhuber [Tue, 2 Jul 2013 03:59:04 +0000 (20:59 -0700)]
Fix maths error

11 years agoSupport for `count` as a format type; update PHPdoc
Daniel Bachhuber [Tue, 2 Jul 2013 03:58:29 +0000 (20:58 -0700)]
Support for `count` as a format type; update PHPdoc

11 years agoBehat test for force-installing a specific version of a theme.
Daniel Bachhuber [Tue, 2 Jul 2013 03:35:24 +0000 (20:35 -0700)]
Behat test for force-installing a specific version of a theme.

11 years agoA Behat test for force-installing a plugin
Daniel Bachhuber [Tue, 2 Jul 2013 03:30:56 +0000 (20:30 -0700)]
A Behat test for force-installing a plugin

11 years agoImprove `theme install` logic to support force-installing a specific version.
Daniel Bachhuber [Tue, 2 Jul 2013 03:18:54 +0000 (20:18 -0700)]
Improve `theme install` logic to support force-installing a specific version.

Previous `theme install` logic:

* Updates the theme if there's an update available.
* Installs if the theme isn't installed.
* Otherwise, assume the theme is installed.

New `theme install` logic:

* Don't do anything if theme is already installed and no `--version` specified.
* If `--version` is set and is different than what's installed, force install.
* Install if the theme isn't installed.

11 years agoMerge branch 'master' into force-install-476
Daniel Bachhuber [Tue, 2 Jul 2013 03:00:03 +0000 (20:00 -0700)]
Merge branch 'master' into force-install-476

11 years agoremove debug line
Eugene Ware [Tue, 2 Jul 2013 02:28:01 +0000 (12:28 +1000)]
remove debug line

11 years agobool -> list
Eugene Ware [Tue, 2 Jul 2013 02:26:09 +0000 (12:26 +1000)]
bool -> list

11 years agotravis: test against PHP 5.5
scribu [Sun, 30 Jun 2013 23:52:19 +0000 (01:52 +0200)]
travis: test against PHP 5.5

11 years agointroduce WP_CLI::get_runner() getter
scribu [Sun, 30 Jun 2013 21:44:49 +0000 (23:44 +0200)]
introduce WP_CLI::get_runner() getter

We don't want to allow people to change the runner instance either.

11 years agointroduce get_configurator() getter
scribu [Sun, 30 Jun 2013 21:41:33 +0000 (23:41 +0200)]
introduce get_configurator() getter

We don't want to allow people to change the configurator instance just yet.

11 years agoconvert from WP_CLI:: to self::
scribu [Sun, 30 Jun 2013 21:37:08 +0000 (23:37 +0200)]
convert from WP_CLI:: to self::

11 years agoMerge pull request #571 from wp-cli/commands-in-packages
Cristi Burcă [Sun, 30 Jun 2013 21:35:59 +0000 (14:35 -0700)]
Merge pull request #571 from wp-cli/commands-in-packages

Enable commands to be defined in Composer packages

11 years agoconvert $root from class static to method static
scribu [Sun, 30 Jun 2013 21:24:07 +0000 (23:24 +0200)]
convert $root from class static to method static

This avoids accidental direct access from other class methods.

11 years agointroduce get_root_command() getter
scribu [Sun, 30 Jun 2013 21:19:55 +0000 (23:19 +0200)]
introduce get_root_command() getter

11 years agoinstantiate WP_CLI::$root on-demand
scribu [Sun, 30 Jun 2013 21:14:33 +0000 (23:14 +0200)]
instantiate WP_CLI::$root on-demand

11 years agomake WP_CLI::add_command() work when called from a Composer package's autoloaded...
scribu [Sun, 30 Jun 2013 20:53:41 +0000 (22:53 +0200)]
make WP_CLI::add_command() work when called from a Composer package's autoloaded file

11 years agoensure CRLF are always normalized to LF in the git database
scribu [Wed, 26 Jun 2013 15:53:20 +0000 (18:53 +0300)]
ensure CRLF are always normalized to LF in the git database

11 years agolock php-cli-tools version to 0.9.3
scribu [Wed, 26 Jun 2013 09:27:09 +0000 (12:27 +0300)]
lock php-cli-tools version to 0.9.3

fixes #560; see #561

11 years agoMake wp rewrite (flush|structure) generate .htaccess files properly for apache.
Eugene Ware [Wed, 26 Jun 2013 06:37:16 +0000 (16:37 +1000)]
Make wp rewrite (flush|structure) generate .htaccess files properly for apache.

11 years agosupport for port and socket configurations with wp core config
Eugene Ware [Wed, 26 Jun 2013 01:52:51 +0000 (11:52 +1000)]
support for port and socket configurations with wp core config

11 years agoMerge pull request #299 from wp-cli/import
Cristi Burcă [Tue, 25 Jun 2013 22:42:27 +0000 (15:42 -0700)]
Merge pull request #299 from wp-cli/import

Import Command

11 years agofix indentation in import.feature
scribu [Tue, 25 Jun 2013 22:26:13 +0000 (01:26 +0300)]
fix indentation in import.feature

[ci skip]

11 years agoadd newline at end of man-src/import.txt
scribu [Tue, 25 Jun 2013 22:24:26 +0000 (01:24 +0300)]
add newline at end of man-src/import.txt

[ci skip]

11 years agominor whitespace fixes
scribu [Tue, 25 Jun 2013 22:16:44 +0000 (01:16 +0300)]
minor whitespace fixes

11 years agoHave the success message appear on its own line
Daniel Bachhuber [Tue, 25 Jun 2013 21:25:20 +0000 (14:25 -0700)]
Have the success message appear on its own line

https://github.com/wp-cli/wp-cli/pull/299#issuecomment-20008252

11 years agoMerge pull request #557 from wp-cli/fix-completions
Cristi Burcă [Tue, 25 Jun 2013 21:03:07 +0000 (14:03 -0700)]
Merge pull request #557 from wp-cli/fix-completions

Completions are broken

11 years agoUpdate docs
Daniel Bachhuber [Mon, 24 Jun 2013 18:04:31 +0000 (11:04 -0700)]
Update docs

11 years agoBasic feature test for import command
Daniel Bachhuber [Mon, 24 Jun 2013 17:50:47 +0000 (10:50 -0700)]
Basic feature test for import command

11 years agoAllow a subset of STDOUT and STDERR to be used with a syntax like: `'Writing to file...
Daniel Bachhuber [Mon, 24 Jun 2013 17:48:58 +0000 (10:48 -0700)]
Allow a subset of STDOUT and STDERR to be used with a syntax like: `'Writing to file %s'`

11 years agoIncorporate @mjangda's helpful verbosity filters
Daniel Bachhuber [Mon, 24 Jun 2013 12:41:30 +0000 (12:41 +0000)]
Incorporate @mjangda's helpful verbosity filters

11 years agoMake the `--authors` argument required. It's a very necessary step, even if just...
Daniel Bachhuber [Thu, 25 Apr 2013 17:29:34 +0000 (17:29 +0000)]
Make the `--authors` argument required. It's a very necessary step, even if just to have the user confirm they're skipping mappings.

11 years agoRefactor author mapping code so it can be used with other importers
Daniel Bachhuber [Sun, 21 Apr 2013 19:29:45 +0000 (12:29 -0700)]
Refactor author mapping code so it can be used with other importers

11 years agoIncorporate author mapping support into the WordPress importer.
Daniel Bachhuber [Sun, 21 Apr 2013 18:20:02 +0000 (11:20 -0700)]
Incorporate author mapping support into the WordPress importer.

* If a .csv filename is specified, it will look for an author mapping file.
* If the .csv author mapping file doesn't exist, it will create one for you and wait for you to edit.
* `--authors=create` will create any missing users, and expect that either user_email or user_logins map up directly.
* `--authors=skip` will ignore any byline mapping.

11 years agoFirst pass at a refactor to make `wp import` more abstracted, and potentially support...
Daniel Bachhuber [Sun, 21 Apr 2013 16:04:52 +0000 (09:04 -0700)]
First pass at a refactor to make `wp import` more abstracted, and potentially support multiple importers.

11 years agoAlso define `WP_IMPORTING`, as this constant can be used to determine whether a numbe...
Daniel Bachhuber [Sun, 21 Apr 2013 15:19:16 +0000 (08:19 -0700)]
Also define `WP_IMPORTING`, as this constant can be used to determine whether a number of supplemental actions are run (or not)

11 years agoA wee bit of work on an import command
Daniel Bachhuber [Tue, 12 Feb 2013 01:07:21 +0000 (14:07 +1300)]
A wee bit of work on an import command

11 years agomove completions flag to 'cli' command
scribu [Tue, 25 Jun 2013 20:45:52 +0000 (23:45 +0300)]
move completions flag to 'cli' command

11 years agoadd test for --completions flag
scribu [Tue, 25 Jun 2013 20:45:05 +0000 (23:45 +0300)]
add test for --completions flag

11 years agoMerge pull request #556 from wp-cli/custom-port
Cristi Burcă [Tue, 25 Jun 2013 20:31:48 +0000 (13:31 -0700)]
Merge pull request #556 from wp-cli/custom-port

`wp core install` ignores custom port

11 years agobehat: set custom port only in that specific test, since multisite installs don't...
scribu [Tue, 25 Jun 2013 20:18:28 +0000 (23:18 +0300)]
behat: set custom port only in that specific test, since multisite installs don't like it