OSDN Git Service

wvm/wvm.git
11 years agorename is_absolute_path() to is_path_absolute()
scribu [Wed, 12 Jun 2013 02:26:32 +0000 (05:26 +0300)]
rename is_absolute_path() to is_path_absolute()

it emphasises the assumption that the parameter is a path and not some
random string

11 years agomove all config logic to a new class
scribu [Wed, 12 Jun 2013 01:12:11 +0000 (04:12 +0300)]
move all config logic to a new class

11 years agopass docparser directly to CompositeCommand constructor
scribu [Mon, 10 Jun 2013 00:15:47 +0000 (03:15 +0300)]
pass docparser directly to CompositeCommand constructor

11 years agomake the Subcommand constructor accept a callback
scribu [Sun, 9 Jun 2013 23:50:01 +0000 (02:50 +0300)]
make the Subcommand constructor accept a callback

the idea is to have fewer parameters, with a clearer purpose

11 years agoextract create_subcommand() method
scribu [Sun, 9 Jun 2013 23:30:38 +0000 (02:30 +0300)]
extract create_subcommand() method

11 years agoMerge pull request #508 from wp-cli/dispatcher-refactor
Cristi Burcă [Sun, 9 Jun 2013 21:56:19 +0000 (14:56 -0700)]
Merge pull request #508 from wp-cli/dispatcher-refactor

Refactor dispather classes

11 years agomove find_command() utility to Help_Command class
scribu [Sun, 9 Jun 2013 21:35:48 +0000 (00:35 +0300)]
move find_command() utility to Help_Command class

it's not used anywhere else, nor should it be

11 years agoget rid of pre_invoke() method
scribu [Sun, 9 Jun 2013 21:30:10 +0000 (00:30 +0300)]
get rid of pre_invoke() method

11 years agomake Subcommand inherit from CompositeCommand
scribu [Sun, 9 Jun 2013 20:38:12 +0000 (23:38 +0300)]
make Subcommand inherit from CompositeCommand

11 years agoSimplify dispatch class hierarchy:
scribu [Sun, 9 Jun 2013 19:52:56 +0000 (22:52 +0300)]
Simplify dispatch class hierarchy:

* merge AbstractCommandContainer into CompositeCommand
* make RootCommand inherit from CompositeCommand
* get rid of redundant Command and CommandContainer interfaces

11 years agoconvert get_full_synopsis() method to a standalone function
scribu [Sun, 9 Jun 2013 19:48:13 +0000 (22:48 +0300)]
convert get_full_synopsis() method to a standalone function

11 years agoeverything is documentable, so get rid of the Documentable interface
scribu [Sun, 9 Jun 2013 19:23:00 +0000 (22:23 +0300)]
everything is documentable, so get rid of the Documentable interface

11 years agoget rid of AtomicCommand interface
scribu [Sun, 9 Jun 2013 19:19:19 +0000 (22:19 +0300)]
get rid of AtomicCommand interface

11 years agobranding: the project name is 'WP-CLI', not 'wp-cli'
scribu [Sun, 9 Jun 2013 18:41:20 +0000 (21:41 +0300)]
branding: the project name is 'WP-CLI', not 'wp-cli'

It's an abbreviation for 'WordPress Command-Line Interface'

11 years agomove 'sql' aliasing to Runner
scribu [Sun, 9 Jun 2013 13:40:22 +0000 (16:40 +0300)]
move 'sql' aliasing to Runner

11 years agoblog: don't hide multisite-only subcommands; just throw an error
scribu [Sun, 9 Jun 2013 12:23:53 +0000 (15:23 +0300)]
blog: don't hide multisite-only subcommands; just throw an error

This is good for `wp help --gen`, which doesn't have a WP install.

It's also good for users, since they have a clear indication of why the
subcommand doesn't work.

11 years agocontributing: remove confusing ./utils/dev-build step
scribu [Sun, 9 Jun 2013 12:37:23 +0000 (15:37 +0300)]
contributing: remove confusing ./utils/dev-build step

11 years agoMerge branch 'dev'
scribu [Sun, 9 Jun 2013 12:02:24 +0000 (15:02 +0300)]
Merge branch 'dev'

11 years agobump version to 0.11.0-alpha
scribu [Sun, 9 Jun 2013 12:02:15 +0000 (15:02 +0300)]
bump version to 0.11.0-alpha

11 years agolink to contributor guide from readme
scribu [Sun, 9 Jun 2013 10:57:54 +0000 (13:57 +0300)]
link to contributor guide from readme

11 years agoMerge branch 'master' into dev
scribu [Sat, 8 Jun 2013 23:57:42 +0000 (02:57 +0300)]
Merge branch 'master' into dev

11 years agosearch-replace: rename --multisite flag to --network v0.10.0
scribu [Sat, 8 Jun 2013 22:33:58 +0000 (01:33 +0300)]
search-replace: rename --multisite flag to --network

it's more consistent with other commands

fixes #504; see #501

11 years agomailmap: add new contributors from 0.10 release
scribu [Sat, 8 Jun 2013 21:51:09 +0000 (00:51 +0300)]
mailmap: add new contributors from 0.10 release

11 years agocontrib-list: validate github URLs
scribu [Sat, 8 Jun 2013 21:36:50 +0000 (00:36 +0300)]
contrib-list: validate github URLs

11 years agobump version to 0.10.0
scribu [Sat, 8 Jun 2013 21:06:59 +0000 (00:06 +0300)]
bump version to 0.10.0

11 years agoMerge pull request #501 from wp-cli/multisite-search-replace
Cristi Burcă [Sat, 8 Jun 2013 14:08:29 +0000 (07:08 -0700)]
Merge pull request #501 from wp-cli/multisite-search-replace

Land `wp search-replace --multisite`

11 years agosearch-replace: update man page
scribu [Sat, 8 Jun 2013 14:01:01 +0000 (17:01 +0300)]
search-replace: update man page

11 years agosearch-replace: move primary key check
scribu [Sat, 8 Jun 2013 13:49:38 +0000 (16:49 +0300)]
search-replace: move primary key check

11 years agoMerge branch 'master' into dev
scribu [Sat, 8 Jun 2013 13:46:57 +0000 (16:46 +0300)]
Merge branch 'master' into dev

11 years agosearch-replace: use a single SHOW TABLES query to get list of multisite tables
scribu [Sat, 8 Jun 2013 13:36:18 +0000 (16:36 +0300)]
search-replace: use a single SHOW TABLES query to get list of multisite tables

Besides simplicity, it avoids warnings for non-existant tables.

For example, the Posts 2 Posts plugin creates 2 custom, per-blog tables.
But it might not be activated on all blogs.

11 years agosearch-replace: fix warning from using wpdb->prepare() with only 1 parameter
scribu [Sat, 8 Jun 2013 13:22:21 +0000 (16:22 +0300)]
search-replace: fix warning from using wpdb->prepare() with only 1 parameter

11 years agosearch-replace: extract get_table_list() method
scribu [Sat, 8 Jun 2013 13:17:32 +0000 (16:17 +0300)]
search-replace: extract get_table_list() method

11 years agosearch-replace: blacklist user_pass column later
scribu [Sat, 8 Jun 2013 13:09:37 +0000 (16:09 +0300)]
search-replace: blacklist user_pass column later

11 years agosearch-replace: whitespace fixes
scribu [Sat, 8 Jun 2013 13:08:10 +0000 (16:08 +0300)]
search-replace: whitespace fixes

11 years agosearch-replace function modified to perform a search and replace through multisite...
daithi-coombes [Sat, 8 Jun 2013 12:54:39 +0000 (13:54 +0100)]
search-replace function modified to perform a search and replace through multisite specific tables

11 years agobump version to 0.10.0-RC
scribu [Sat, 8 Jun 2013 09:55:22 +0000 (12:55 +0300)]
bump version to 0.10.0-RC

11 years agoMerge pull request #496 from wp-cli/no-home
Cristi Burcă [Fri, 7 Jun 2013 16:38:18 +0000 (09:38 -0700)]
Merge pull request #496 from wp-cli/no-home

Remove `wp home` command

11 years agoremove `wp home` command
scribu [Fri, 7 Jun 2013 14:37:08 +0000 (17:37 +0300)]
remove `wp home` command

11 years agoMerge pull request #494 from Future500/master
Cristi Burcă [Thu, 6 Jun 2013 14:31:36 +0000 (07:31 -0700)]
Merge pull request #494 from Future500/master

Allow capital letters in <value> tokens in @synopsis

11 years agoAllow capital letters in <value> tokens in @synopsis
Ramon de la Fuente [Thu, 6 Jun 2013 14:16:21 +0000 (16:16 +0200)]
Allow capital letters in <value> tokens in @synopsis

Values in @synopsis tags are not matched if they contain capital letters.
This allows for capital letters i.e. --name=<myPropertyValue>
fixes #493

11 years agoMerge pull request #492 from om4james/updateall
Cristi Burcă [Wed, 5 Jun 2013 13:52:35 +0000 (06:52 -0700)]
Merge pull request #492 from om4james/updateall

Only use maintenance mode if a plugin or theme needs updating

11 years agoUse empty() check instead of count()
James Collins [Wed, 5 Jun 2013 13:41:29 +0000 (23:41 +1000)]
Use empty() check instead of count()

Requested in https://github.com/wp-cli/wp-cli/pull/492#discussion_r4545088.

11 years agoChange ternary operator to simple if statement
James Collins [Wed, 5 Jun 2013 12:59:11 +0000 (22:59 +1000)]
Change ternary operator to simple if statement

11 years agoOnly use maintenance mode if a plugin or theme needs updating
James Collins [Wed, 5 Jun 2013 12:42:10 +0000 (22:42 +1000)]
Only use maintenance mode if a plugin or theme needs updating

When updating plugins (wp plugin update-all) or themes (wp theme update-all) on a WordPress multisite installation, maintenance activated and deactivated even if there are no updates to install.

The Plugin_Upgrader::bulk_upgrade() and Theme_Upgrader::bulk_upgrade() WordPress functions currently don't check that the array passed to it isn't empty, causing maintenance mode to be enabled even if no updates are required.

This bug doesn't affect non multisite installs, because for non multisite installs the code in Plugin_Upgrader::bulk_upgrade() and Theme_Upgrader::bulk_upgrade() only uses maintenance mode if the plugin/theme being updated is activated.

Fixes #491

11 years agobump version to 0.10.0-beta2
scribu [Wed, 5 Jun 2013 01:14:58 +0000 (04:14 +0300)]
bump version to 0.10.0-beta2

[ci skip]

11 years agocomposer: update mustache to 2.3.x; update composer.lock
scribu [Wed, 5 Jun 2013 01:04:07 +0000 (04:04 +0300)]
composer: update mustache to 2.3.x; update composer.lock

11 years agoMerge branch 'master' into dev
scribu [Tue, 4 Jun 2013 23:10:55 +0000 (02:10 +0300)]
Merge branch 'master' into dev

11 years agocore is-installed: let the bootstrap process show the error message.
scribu [Sat, 13 Apr 2013 18:50:34 +0000 (21:50 +0300)]
core is-installed: let the bootstrap process show the error message.

11 years agooption: add success messages
scribu [Tue, 4 Jun 2013 15:04:18 +0000 (18:04 +0300)]
option: add success messages

see #472

11 years agoMerge branch 'behat-upgradables' into dev
scribu [Tue, 4 Jun 2013 14:49:38 +0000 (17:49 +0300)]
Merge branch 'behat-upgradables' into dev

11 years agoEnsure `wp plugin delete` and `wp theme delete` output consistent messages.
scribu [Tue, 4 Jun 2013 14:26:33 +0000 (17:26 +0300)]
Ensure `wp plugin delete` and `wp theme delete` output consistent messages.

11 years agobehat: generate new plugin instead of relying on Hello Dolly
scribu [Tue, 4 Jun 2013 13:11:59 +0000 (16:11 +0300)]
behat: generate new plugin instead of relying on Hello Dolly

This allows us to check more things, since all the plugin data is frozen.

11 years agocontributing: use `behat --expand`
scribu [Tue, 4 Jun 2013 13:35:15 +0000 (16:35 +0300)]
contributing: use `behat --expand`

Without --expand, it's hard to debug failures in scenarion outlines.

11 years agoMerge branch 'theme-version' into dev
scribu [Mon, 3 Jun 2013 19:26:03 +0000 (22:26 +0300)]
Merge branch 'theme-version' into dev

11 years agoMerge pull request #463 from wp-cli/theme-version
Cristi Burcă [Mon, 3 Jun 2013 19:25:42 +0000 (12:25 -0700)]
Merge pull request #463 from wp-cli/theme-version

theme install: --version parameter ignored

11 years agorename get_api_for_version() to alter_api_response() and use in plugin command
scribu [Mon, 3 Jun 2013 19:12:28 +0000 (22:12 +0300)]
rename get_api_for_version() to alter_api_response() and use in plugin command

11 years agoCreate `get_api_for_version()`, which will give us the proper download link for a...
Daniel Bachhuber [Mon, 3 Jun 2013 17:34:22 +0000 (10:34 -0700)]
Create `get_api_for_version()`, which will give us the proper download link for a given version

11 years agoMerge branch 'internals-cmd' into dev
scribu [Sun, 2 Jun 2013 21:56:04 +0000 (00:56 +0300)]
Merge branch 'internals-cmd' into dev

closes #489

11 years agoconvert InternalFlags class to Sys_Command
scribu [Sun, 2 Jun 2013 20:08:50 +0000 (23:08 +0300)]
convert InternalFlags class to Sys_Command

11 years agostandardize special flags handling
scribu [Fri, 31 May 2013 19:00:00 +0000 (22:00 +0300)]
standardize special flags handling

11 years agoMerge branch 'scaffold-default-theme' into dev
scribu [Sun, 2 Jun 2013 19:17:26 +0000 (22:17 +0300)]
Merge branch 'scaffold-default-theme' into dev

closes #487

11 years agorun_mysql_command: use --no-defaults instead of --defaults-file
scribu [Thu, 30 May 2013 14:26:45 +0000 (17:26 +0300)]
run_mysql_command: use --no-defaults instead of --defaults-file

11 years agobump version to 0.10.0-beta
scribu [Sun, 2 Jun 2013 19:10:18 +0000 (22:10 +0300)]
bump version to 0.10.0-beta

11 years agoUpdate man docs
Daniel Bachhuber [Sun, 2 Jun 2013 15:47:13 +0000 (08:47 -0700)]
Update man docs

11 years agoUpdate post type and taxonomy scaffold to support a named theme target
Daniel Bachhuber [Sun, 2 Jun 2013 15:44:32 +0000 (08:44 -0700)]
Update post type and taxonomy scaffold to support a named theme target

11 years agocore config: set WPLANG based on downloaded locale
scribu [Sun, 2 Jun 2013 14:41:41 +0000 (17:41 +0300)]
core config: set WPLANG based on downloaded locale

fixes #488

11 years agocore config: fix notice when not passing --dbpass
scribu [Sun, 2 Jun 2013 14:32:13 +0000 (17:32 +0300)]
core config: fix notice when not passing --dbpass

11 years agoscaffold: clarify --theme description in docs
scribu [Sun, 2 Jun 2013 10:47:15 +0000 (13:47 +0300)]
scaffold: clarify --theme description in docs

11 years agoUse `get_stylesheet_directory()` instead of `TEMPLATEPATH` when determining where...
Daniel Bachhuber [Sat, 1 Jun 2013 20:10:46 +0000 (20:10 +0000)]
Use `get_stylesheet_directory()` instead of `TEMPLATEPATH` when determining where to place a scaffold.

In parent-child theme relationships, `TEMPLATEPATH` will always be the parent theme. We'd like to instead place our CPT/taxonomy in the child theme, as child themes are where the customizations occur.

11 years agoMerge pull request #485 from wp-cli/cache-delete-optional
Cristi Burcă [Sat, 1 Jun 2013 02:30:14 +0000 (19:30 -0700)]
Merge pull request #485 from wp-cli/cache-delete-optional

Allow <group> to be optional for wp cache delete

11 years agoRegenerate cache man
Daniel Bachhuber [Sat, 1 Jun 2013 00:21:56 +0000 (00:21 +0000)]
Regenerate cache man

11 years ago`$group` is optional for the function, so let it be optional for the command too
Daniel Bachhuber [Fri, 31 May 2013 22:07:53 +0000 (22:07 +0000)]
`$group` is optional for the function, so let it be optional for the command too

11 years agomake load_command() and load_all_commands() standalone utilities
scribu [Sun, 26 May 2013 02:22:23 +0000 (05:22 +0300)]
make load_command() and load_all_commands() standalone utilities

11 years agoextract find_command_to_run() method
scribu [Sun, 26 May 2013 02:28:53 +0000 (05:28 +0300)]
extract find_command_to_run() method

11 years agomove Utils\set_user() to Runner::set_user()
scribu [Fri, 31 May 2013 18:28:11 +0000 (21:28 +0300)]
move Utils\set_user() to Runner::set_user()

it's not a general-purpose utility and it shouldn't be public

11 years agoMerge pull request #484 from wp-cli/config-extra
Cristi Burcă [Thu, 30 May 2013 13:08:08 +0000 (06:08 -0700)]
Merge pull request #484 from wp-cli/config-extra

Add --extra-php flag to `wp core config`

11 years agocore config: update man page
scribu [Thu, 30 May 2013 12:50:57 +0000 (15:50 +0300)]
core config: update man page

[ci skip]

11 years agocore config: check DB credentials
scribu [Thu, 30 May 2013 12:32:00 +0000 (15:32 +0300)]
core config: check DB credentials

11 years agocore config: abort if wp-config.php already exists
scribu [Thu, 30 May 2013 12:17:21 +0000 (15:17 +0300)]
core config: abort if wp-config.php already exists

11 years agofirst pass at ditching wp-admin/setup-config.php
scribu [Thu, 30 May 2013 00:02:09 +0000 (03:02 +0300)]
first pass at ditching wp-admin/setup-config.php

11 years agoMerge pull request #483 from wp-cli/behat-tables
Cristi Burcă [Thu, 30 May 2013 01:14:07 +0000 (18:14 -0700)]
Merge pull request #483 from wp-cli/behat-tables

Make use of Gherkin table feature

11 years agobehat: use table in 'should be CSV containing' step
scribu [Thu, 30 May 2013 00:56:16 +0000 (03:56 +0300)]
behat: use table in 'should be CSV containing' step

11 years agobehat: refactor search-replace tests by using a scenario outline
scribu [Thu, 30 May 2013 00:36:47 +0000 (03:36 +0300)]
behat: refactor search-replace tests by using a scenario outline

11 years agobehat: use table in 'should be a table containing rows' step
scribu [Wed, 29 May 2013 23:46:58 +0000 (02:46 +0300)]
behat: use table in 'should be a table containing rows' step

11 years agosome behat enhancements
scribu [Thu, 30 May 2013 00:45:09 +0000 (03:45 +0300)]
some behat enhancements

11 years agobehat: pass BEHAT_RUN env variable
scribu [Thu, 30 May 2013 00:34:24 +0000 (03:34 +0300)]
behat: pass BEHAT_RUN env variable

see #473

11 years agoMerge pull request #473 from cyberhobo/fix-incomplete-search-replace
Cristi Burcă [Thu, 30 May 2013 00:12:50 +0000 (17:12 -0700)]
Merge pull request #473 from cyberhobo/fix-incomplete-search-replace

Replace all occurrences in large search-replace operations

11 years agobehat: extend 'the file should' step
scribu [Wed, 29 May 2013 23:12:14 +0000 (02:12 +0300)]
behat: extend 'the file should' step

11 years agobehat: add aditional args if command merely starts with a given string
scribu [Wed, 29 May 2013 23:04:50 +0000 (02:04 +0300)]
behat: add aditional args if command merely starts with a given string

11 years agobehat: move utility functions to separate file
scribu [Wed, 29 May 2013 22:20:35 +0000 (01:20 +0300)]
behat: move utility functions to separate file

11 years agocontributing: clarify workflow
scribu [Wed, 29 May 2013 19:42:03 +0000 (22:42 +0300)]
contributing: clarify workflow

11 years agoMerge pull request #479 from wp-cli/behat-env
Cristi Burcă [Wed, 29 May 2013 17:52:03 +0000 (10:52 -0700)]
Merge pull request #479 from wp-cli/behat-env

behat: separate tests that require the `ronn` gem

11 years agotravis: set WITH_RONN env variable
scribu [Wed, 29 May 2013 17:20:08 +0000 (20:20 +0300)]
travis: set WITH_RONN env variable

Also, tag behat tests that depend on the ronn gem.

We don't care too much about which WP version is installed, so run the
ronn tests only once.

11 years agotravis: move main script to separate file
scribu [Wed, 29 May 2013 17:12:54 +0000 (20:12 +0300)]
travis: move main script to separate file

11 years agotravis: move init script to separate file
scribu [Wed, 29 May 2013 17:00:24 +0000 (20:00 +0300)]
travis: move init script to separate file

11 years agobehat: change subprocess PATH, instead of creating a function
scribu [Wed, 29 May 2013 16:41:29 +0000 (19:41 +0300)]
behat: change subprocess PATH, instead of creating a function

see #475

11 years agoReduce chunk offset to account for updated rows.
Dylan Kuhn [Wed, 29 May 2013 04:47:55 +0000 (21:47 -0700)]
Reduce chunk offset to account for updated rows.

11 years agoAdd a dry run test to make sure the iterator doesn't depend on updates.
Dylan Kuhn [Wed, 29 May 2013 04:46:44 +0000 (21:46 -0700)]
Add a dry run test to make sure the iterator doesn't depend on updates.

11 years agoRevert "Adjust chunking based on whether the replacement contains the search string."
Dylan Kuhn [Wed, 29 May 2013 04:09:44 +0000 (21:09 -0700)]
Revert "Adjust chunking based on whether the replacement contains the search string."

This reverts commit 45770c2d2fef4da9021ef458e4ef55504a7b5872.

11 years agoGenerate only as many posts as needed to test chunking.
Dylan Kuhn [Tue, 28 May 2013 13:56:53 +0000 (06:56 -0700)]
Generate only as many posts as needed to test chunking.