OSDN Git Service
scribu [Sun, 30 Dec 2012 11:14:48 +0000 (13:14 +0200)]
add use \WP_CLI\Utils to wp-settings-cli.php
scribu [Sun, 30 Dec 2012 11:13:50 +0000 (13:13 +0200)]
make wp-settings-cli.php compatible with WP 3.4
scribu [Sun, 30 Dec 2012 11:06:02 +0000 (13:06 +0200)]
use our own version of wp_not_installed(). see #93
scribu [Sun, 30 Dec 2012 10:41:25 +0000 (12:41 +0200)]
never load advanced-cache.php. see #164
scribu [Sun, 30 Dec 2012 10:34:41 +0000 (12:34 +0200)]
remove irrelevant checks: wp_favicon_request() and wp_maintenance()
scribu [Sun, 30 Dec 2012 10:20:46 +0000 (12:20 +0200)]
change header for wp-settings-cli.php
scribu [Sun, 30 Dec 2012 10:18:35 +0000 (12:18 +0200)]
copy wp-settings.php from WP 3.5
scribu [Sun, 30 Dec 2012 09:12:37 +0000 (11:12 +0200)]
Tame wp-config.php
Frustratingly, wp-config.php insists on defining ABSPATH and on
require()ing wp-settings.php.
So, we comb through each line of code from wp-config.php, skipping what
we don't like, and then we explicitly eval() the result.
Afterwards, we're free to require() our own version of wp-settings.php
etc.
scribu [Sun, 30 Dec 2012 08:15:05 +0000 (10:15 +0200)]
pass action as message for assertions
scribu [Sun, 30 Dec 2012 08:09:45 +0000 (10:09 +0200)]
add test for when db tables aren't installed
Cristi Burcă [Sun, 30 Dec 2012 08:05:26 +0000 (00:05 -0800)]
Merge pull request #259 from wp-cli/bdd
Switch to BDD
scribu [Sat, 29 Dec 2012 21:06:12 +0000 (23:06 +0200)]
move WP_CLI_Command_Runner class out of bootstrap.php
scribu [Sat, 29 Dec 2012 21:03:14 +0000 (23:03 +0200)]
explicitly test creating config file and running install
scribu [Sat, 29 Dec 2012 20:50:28 +0000 (22:50 +0200)]
Wordpress_Installer + run_wp_cli() = WP_CLI_Command_Runner
scribu [Sat, 29 Dec 2012 20:16:23 +0000 (22:16 +0200)]
break out compose_assoc_args() utility and use in test runner
scribu [Sat, 29 Dec 2012 20:04:38 +0000 (22:04 +0200)]
WP_CLI::compose_args() -> Utils\compose_args()
scribu [Sat, 29 Dec 2012 19:54:52 +0000 (21:54 +0200)]
transform Command_Runner class into run_wp_cli() method
scribu [Sat, 29 Dec 2012 19:28:57 +0000 (21:28 +0200)]
set @scenarion annotation on a single line
scribu [Sat, 29 Dec 2012 19:19:55 +0000 (21:19 +0200)]
PHPUnit_Extensions_Story_ResultPrinter_Text is not that great
scribu [Sat, 29 Dec 2012 19:06:11 +0000 (21:06 +0200)]
dismantle full_install() method
scribu [Sat, 29 Dec 2012 19:01:24 +0000 (21:01 +0200)]
move supporting code to a WP_CLI_Spec class
scribu [Sat, 29 Dec 2012 18:50:52 +0000 (20:50 +0200)]
remove old test cases and move all supporting code to bootstrap.php
scribu [Sat, 29 Dec 2012 18:29:46 +0000 (20:29 +0200)]
more scenarios
scribu [Sat, 29 Dec 2012 18:29:13 +0000 (20:29 +0200)]
add full_install() method to WordPress_Installer
scribu [Sat, 29 Dec 2012 18:10:53 +0000 (20:10 +0200)]
reset database between scenarios
scribu [Sat, 29 Dec 2012 17:31:30 +0000 (19:31 +0200)]
add first scenario
scribu [Sat, 29 Dec 2012 17:30:07 +0000 (19:30 +0200)]
update phpunit.xml to run the spec tests
scribu [Sat, 29 Dec 2012 17:17:43 +0000 (19:17 +0200)]
add phpunit-story as a dev dependency
scribu [Sat, 29 Dec 2012 17:43:08 +0000 (19:43 +0200)]
don't require passing a runner to Wordpress_Installer
scribu [Sat, 29 Dec 2012 17:20:15 +0000 (19:20 +0200)]
remove old core-Test.php file
scribu [Sat, 29 Dec 2012 17:14:53 +0000 (19:14 +0200)]
minor cleanup in `wp post generate`
scribu [Sat, 29 Dec 2012 16:39:39 +0000 (18:39 +0200)]
use wp_insert_post() in `wp post generate` again.
fixes #217
scribu [Sat, 29 Dec 2012 16:31:37 +0000 (18:31 +0200)]
don't really need an Execution_Result class
scribu [Sat, 29 Dec 2012 16:28:56 +0000 (18:28 +0200)]
tests: use system(), instead of futzing with sh and temp files
Cristi Burcă [Sat, 29 Dec 2012 16:03:29 +0000 (08:03 -0800)]
Merge pull request #256 from wp-cli/disable-commands
introduce 'disabled_commands' config key
scribu [Sat, 29 Dec 2012 15:59:41 +0000 (17:59 +0200)]
dismantle Dispatcher\traverse()
scribu [Sat, 29 Dec 2012 15:41:13 +0000 (17:41 +0200)]
move phpunit.xml to the root dir
scribu [Sat, 29 Dec 2012 15:38:09 +0000 (17:38 +0200)]
add phpunit.xml file
scribu [Sat, 29 Dec 2012 15:32:32 +0000 (17:32 +0200)]
fix test_message_explains_that_config_must_be_present_before_install(). see #170
scribu [Sat, 29 Dec 2012 15:07:23 +0000 (17:07 +0200)]
check disabled commands during registration, instead of during invocation
scribu [Sat, 29 Dec 2012 14:54:09 +0000 (16:54 +0200)]
move logic from CompositeCommand constructor to WP_CLI class
scribu [Sat, 29 Dec 2012 14:22:00 +0000 (16:22 +0200)]
create new command instance on each invocation. fixes #257
scribu [Sat, 29 Dec 2012 13:23:34 +0000 (15:23 +0200)]
introduce 'disabled_commands' config key
scribu [Sat, 29 Dec 2012 12:45:50 +0000 (14:45 +0200)]
introduce AbstractCommandContainer class
scribu [Sat, 29 Dec 2012 12:39:27 +0000 (14:39 +0200)]
add_command(): move logic back to WP_CLI class
scribu [Sat, 29 Dec 2012 12:32:08 +0000 (14:32 +0200)]
make load_command() protected
scribu [Sat, 29 Dec 2012 11:51:44 +0000 (13:51 +0200)]
transform get_path() method into a standalone function
also introduce AtomicCommand interface
scribu [Sat, 29 Dec 2012 10:59:09 +0000 (12:59 +0200)]
only command containers can have subcommands
scribu [Sat, 29 Dec 2012 10:52:25 +0000 (12:52 +0200)]
regenerate man pages. see #229
scribu [Sat, 29 Dec 2012 10:48:54 +0000 (12:48 +0200)]
rename Composite interface to CommandContainer
Command containers don't need to have an invoke() method, since they
don't have any implementation of their own.
scribu [Fri, 28 Dec 2012 17:46:38 +0000 (19:46 +0200)]
introduce CommandWithDBObject class
- make `wp user update` accept multiple IDs. see #229
- use wpmu_user_delete() when on multisite
- return correct error status
scribu [Fri, 28 Dec 2012 14:33:11 +0000 (16:33 +0200)]
make wp user delete accept multiple ids. see #229
Cristi Burcă [Fri, 28 Dec 2012 14:48:26 +0000 (06:48 -0800)]
Merge pull request #255 from wp-cli/csv-iterator
Replace parse_csv() with an iterator
scribu [Fri, 28 Dec 2012 14:13:39 +0000 (16:13 +0200)]
make iterator more lenient
* don't bail on empty lines
* allow columns to be skipped
scribu [Fri, 28 Dec 2012 12:15:17 +0000 (14:15 +0200)]
replace parse_csv() with CSVIterator class
scribu [Fri, 28 Dec 2012 11:51:28 +0000 (13:51 +0200)]
move set_wp_root() closer to locate_wp_config()
scribu [Fri, 28 Dec 2012 11:46:06 +0000 (13:46 +0200)]
separate wp-dependent utilities from independent ones
Cristi Burcă [Fri, 28 Dec 2012 10:01:25 +0000 (02:01 -0800)]
Merge pull request #254 from wp-cli/generic-config
Generic config file
scribu [Fri, 28 Dec 2012 08:17:19 +0000 (10:17 +0200)]
whitelist config keys
scribu [Fri, 28 Dec 2012 08:06:37 +0000 (10:06 +0200)]
correct extension is .yml, not .yaml
scribu [Fri, 28 Dec 2012 07:47:38 +0000 (09:47 +0200)]
rename $assoc_special to $config
scribu [Fri, 28 Dec 2012 07:43:35 +0000 (09:43 +0200)]
load wp-cli.yaml file
scribu [Fri, 28 Dec 2012 07:32:40 +0000 (09:32 +0200)]
add Spyc YAML parser
scribu [Fri, 28 Dec 2012 05:45:28 +0000 (07:45 +0200)]
regenerate search-replace manpage
scribu [Fri, 28 Dec 2012 05:44:53 +0000 (07:44 +0200)]
add optional <table>... param to search-replace. see #249
scribu [Wed, 26 Dec 2012 10:18:20 +0000 (12:18 +0200)]
refresh man pages
scribu [Wed, 26 Dec 2012 10:17:58 +0000 (12:17 +0200)]
add search-replace man txt. see #249
scribu [Wed, 26 Dec 2012 10:16:35 +0000 (12:16 +0200)]
fix path to man dirs; see #250
Cristi Burcă [Fri, 28 Dec 2012 05:24:47 +0000 (21:24 -0800)]
Merge pull request #251 from Automattic/sort-commands-alpha
Always return the list of subcommands as alphabetically sorted.
Daniel Bachhuber [Fri, 28 Dec 2012 01:47:48 +0000 (01:47 +0000)]
Always return the list of subcommands as alphabetically sorted.
This ensures commands added by plugins are added in their proper place.
Cristi Burcă [Wed, 26 Dec 2012 10:11:49 +0000 (02:11 -0800)]
Merge pull request #250 from wp-cli/autoload
Add class autoloading
scribu [Wed, 26 Dec 2012 09:56:09 +0000 (11:56 +0200)]
move everything from /php/wp-cli/ to /php/
scribu [Wed, 26 Dec 2012 09:48:00 +0000 (11:48 +0200)]
autoload query iterator classes
scribu [Wed, 26 Dec 2012 09:28:22 +0000 (11:28 +0200)]
Use Composer's autoloader, when available
scribu [Wed, 26 Dec 2012 09:24:10 +0000 (11:24 +0200)]
make autoloader PSR-0
scribu [Wed, 26 Dec 2012 09:20:19 +0000 (11:20 +0200)]
move non-namespaceable classes out of /classes/ folder
scribu [Wed, 26 Dec 2012 09:18:28 +0000 (11:18 +0200)]
move Dispatcher classes to separate files
scribu [Wed, 26 Dec 2012 08:56:17 +0000 (10:56 +0200)]
move DocParser class to separate file
scribu [Wed, 26 Dec 2012 08:52:47 +0000 (10:52 +0200)]
WP_CLI_Command_With_Upgrade -> \WP_CLI\CommandWithUpgrade
scribu [Wed, 26 Dec 2012 08:48:11 +0000 (10:48 +0200)]
WP_CLI_Command_With_Meta -> \WP_CLI\CommandWithMeta
scribu [Wed, 26 Dec 2012 08:38:28 +0000 (10:38 +0200)]
autoload upgrader classes
CLI_Upgrader_Skin -> WP_CLI\UpgraderSkin
Non_Destructive_Core_Upgrader -> WP_CLI\NonDestructiveCoreUpgrader
scribu [Wed, 26 Dec 2012 08:37:28 +0000 (10:37 +0200)]
add basic autoloader for WP_CLI namespace
scribu [Wed, 26 Dec 2012 08:06:14 +0000 (10:06 +0200)]
move class-*.php to classes/*.php
Cristi Burcă [Wed, 26 Dec 2012 08:02:52 +0000 (00:02 -0800)]
Merge pull request #249 from wp-cli/search-replace
Add `search-replace` command
scribu [Wed, 26 Dec 2012 07:15:50 +0000 (09:15 +0200)]
add --dry-run flag
scribu [Wed, 26 Dec 2012 07:02:04 +0000 (09:02 +0200)]
use \cli\Table for displaying the report
scribu [Wed, 26 Dec 2012 06:56:37 +0000 (08:56 +0200)]
first pass at search-replace command
scribu [Wed, 26 Dec 2012 05:46:58 +0000 (07:46 +0200)]
add query iterators as submodule
scribu [Mon, 24 Dec 2012 14:49:53 +0000 (16:49 +0200)]
update path in build.xml instead of creating src dir. see #248
Cristi Burcă [Mon, 24 Dec 2012 14:44:27 +0000 (06:44 -0800)]
Merge pull request #248 from wp-cli/no-src-dir
move everything from src/ into the top level
scribu [Mon, 24 Dec 2012 14:43:02 +0000 (16:43 +0200)]
fix pear-build
scribu [Mon, 24 Dec 2012 08:56:00 +0000 (10:56 +0200)]
move everything from src/ into the top level
Cristi Burcă [Sun, 23 Dec 2012 13:52:54 +0000 (05:52 -0800)]
Merge pull request #170 from wp-cli/no-colors
Disable coloring when not in a tty
scribu [Sun, 23 Dec 2012 12:51:03 +0000 (14:51 +0200)]
disable colors if output is not a TTY
Cristi Burcă [Sun, 23 Dec 2012 12:33:37 +0000 (04:33 -0800)]
Merge pull request #230 from wp-cli/no-community-commands
Future of community commands
scribu [Sun, 23 Dec 2012 12:24:58 +0000 (14:24 +0200)]
move internal commands to /commands/ folder
scribu [Sun, 23 Dec 2012 12:21:47 +0000 (14:21 +0200)]
make dispatcher look in /commands/ folder, instead of subfolders
scribu [Sun, 23 Dec 2012 12:23:06 +0000 (14:23 +0200)]
remove community commands
scribu [Sun, 23 Dec 2012 08:09:19 +0000 (10:09 +0200)]
check wp-config.php before running most commands. fixes #246
scribu [Sun, 16 Dec 2012 22:02:06 +0000 (00:02 +0200)]
Re-add compare-cmd utility, with description.
This reverts commit
d71972b39f3e5bc74da3f3499ccf815d1753936b.