OSDN Git Service

wvm/wvm.git
11 years agofirst pass at `wp scaffold plugin`
scribu [Tue, 1 Jan 2013 12:28:32 +0000 (14:28 +0200)]
first pass at `wp scaffold plugin`

11 years agoMerge pull request #265 from wp-cli/scaffold-mustache
Cristi Burcă [Tue, 1 Jan 2013 12:19:36 +0000 (04:19 -0800)]
Merge pull request #265 from wp-cli/scaffold-mustache

Use Mustache for scaffold templates

11 years agoremove @maintainer and @subpackage tags
scribu [Tue, 1 Jan 2013 12:18:30 +0000 (14:18 +0200)]
remove @maintainer and @subpackage tags

11 years agoMerge pull request #268 from Automattic/proper-file-version
Cristi Burcă [Tue, 1 Jan 2013 10:08:57 +0000 (02:08 -0800)]
Merge pull request #268 from Automattic/proper-file-version

Require the file based on when the file was actually committed to core.

11 years agoRequire the file based on when the file was actually committed to core.
Daniel Bachhuber [Tue, 1 Jan 2013 00:12:56 +0000 (00:12 +0000)]
Require the file based on when the file was actually committed to core.

11 years agopass whole post to get_permalink() and cache the result
scribu [Mon, 31 Dec 2012 19:13:18 +0000 (21:13 +0200)]
pass whole post to get_permalink() and cache the result

11 years agouse {{label}} instead of {{slug}}, where appropriate
scribu [Mon, 31 Dec 2012 19:08:39 +0000 (21:08 +0200)]
use {{label}} instead of {{slug}}, where appropriate

11 years agoreplace {{post_type}} with {{slug}}
scribu [Mon, 31 Dec 2012 19:06:34 +0000 (21:06 +0200)]
replace {{post_type}} with {{slug}}

11 years agotransform scaffold raw php templates into mustache templates
scribu [Mon, 31 Dec 2012 17:51:28 +0000 (19:51 +0200)]
transform scaffold raw php templates into mustache templates

* move common code into helper method
* make taxonomy template more consistent with cpt template
* rename --label to --singular

11 years agoadd Mustache dependency
scribu [Mon, 31 Dec 2012 11:30:43 +0000 (13:30 +0200)]
add Mustache dependency

11 years agoMerge pull request #264 from wp-cli/scaffold-cleanup
Cristi Burcă [Mon, 31 Dec 2012 15:00:02 +0000 (07:00 -0800)]
Merge pull request #264 from wp-cli/scaffold-cleanup

`scaffold` cleanup

11 years agophp/commands/skeletons -> php/templates
scribu [Mon, 31 Dec 2012 14:42:45 +0000 (16:42 +0200)]
php/commands/skeletons -> php/templates

11 years agoadd man pages
scribu [Mon, 31 Dec 2012 14:32:35 +0000 (16:32 +0200)]
add man pages

11 years agorename --plugin_name arg to --plugin
scribu [Mon, 31 Dec 2012 14:26:58 +0000 (16:26 +0200)]
rename --plugin_name arg to --plugin

11 years agoadd shortdesc and mention <slug> in synopsis
scribu [Mon, 31 Dec 2012 14:14:00 +0000 (16:14 +0200)]
add shortdesc and mention <slug> in synopsis

11 years agospacing fixes
scribu [Mon, 31 Dec 2012 14:12:17 +0000 (16:12 +0200)]
spacing fixes

11 years agoscaffold.php: tabs, not spaces
scribu [Mon, 31 Dec 2012 14:10:36 +0000 (16:10 +0200)]
scaffold.php: tabs, not spaces

11 years agochange alias from 'pt' to 'cpt', which is more familiar
scribu [Mon, 31 Dec 2012 14:08:37 +0000 (16:08 +0200)]
change alias from 'pt' to 'cpt', which is more familiar

11 years agoMerge pull request #226 from linepress/master
Cristi Burcă [Mon, 31 Dec 2012 14:06:54 +0000 (06:06 -0800)]
Merge pull request #226 from linepress/master

Scaffold command for post type and taxonomy

11 years agofix punctuation for deprecation messages
scribu [Mon, 31 Dec 2012 13:10:01 +0000 (15:10 +0200)]
fix punctuation for deprecation messages

11 years agoadd deprecation warnings for --blog and wp-cli-blog. see #254
scribu [Mon, 31 Dec 2012 13:08:33 +0000 (15:08 +0200)]
add deprecation warnings for --blog and wp-cli-blog. see #254

11 years agos/$blog/$url/
scribu [Mon, 31 Dec 2012 13:05:48 +0000 (15:05 +0200)]
s/$blog/$url/

11 years agorun_command(): make $assoc_args parameter optional
scribu [Mon, 31 Dec 2012 12:51:42 +0000 (14:51 +0200)]
run_command(): make $assoc_args parameter optional

11 years agocompose_args() -> args_to_str()
scribu [Mon, 31 Dec 2012 12:46:17 +0000 (14:46 +0200)]
compose_args() -> args_to_str()

11 years agomove dispatching logic to a standalone utility function
scribu [Mon, 31 Dec 2012 12:40:41 +0000 (14:40 +0200)]
move dispatching logic to a standalone utility function

11 years agoMerge pull request #261 from wp-cli/custom-wp-loading
Cristi Burcă [Sun, 30 Dec 2012 13:30:05 +0000 (05:30 -0800)]
Merge pull request #261 from wp-cli/custom-wp-loading

Custom WP Loading

11 years agoreplace __FILE__ and __DIR__ before calling eval()
scribu [Sun, 30 Dec 2012 13:06:25 +0000 (15:06 +0200)]
replace __FILE__ and __DIR__ before calling eval()

11 years agoadd test case for custom WP_CONTENT dirs
scribu [Sun, 30 Dec 2012 12:57:36 +0000 (14:57 +0200)]
add test case for custom WP_CONTENT dirs

11 years agotests: pass wp-cli command as a parameter
scribu [Sun, 30 Dec 2012 12:20:58 +0000 (14:20 +0200)]
tests: pass wp-cli command as a parameter

11 years agopass WP version to maybe_require()
scribu [Sun, 30 Dec 2012 11:25:33 +0000 (13:25 +0200)]
pass WP version to maybe_require()

11 years agomake wp-settings-cli.php compatible with WP 3.3
scribu [Sun, 30 Dec 2012 11:22:27 +0000 (13:22 +0200)]
make wp-settings-cli.php compatible with WP 3.3

11 years agoadd use \WP_CLI\Utils to wp-settings-cli.php
scribu [Sun, 30 Dec 2012 11:14:48 +0000 (13:14 +0200)]
add use \WP_CLI\Utils to wp-settings-cli.php

11 years agomake wp-settings-cli.php compatible with WP 3.4
scribu [Sun, 30 Dec 2012 11:13:50 +0000 (13:13 +0200)]
make wp-settings-cli.php compatible with WP 3.4

11 years agouse our own version of wp_not_installed(). see #93
scribu [Sun, 30 Dec 2012 11:06:02 +0000 (13:06 +0200)]
use our own version of wp_not_installed(). see #93

11 years agonever load advanced-cache.php. see #164
scribu [Sun, 30 Dec 2012 10:41:25 +0000 (12:41 +0200)]
never load advanced-cache.php. see #164

11 years agoremove irrelevant checks: wp_favicon_request() and wp_maintenance()
scribu [Sun, 30 Dec 2012 10:34:41 +0000 (12:34 +0200)]
remove irrelevant checks: wp_favicon_request() and wp_maintenance()

11 years agochange header for wp-settings-cli.php
scribu [Sun, 30 Dec 2012 10:20:46 +0000 (12:20 +0200)]
change header for wp-settings-cli.php

11 years agocopy wp-settings.php from WP 3.5
scribu [Sun, 30 Dec 2012 10:18:35 +0000 (12:18 +0200)]
copy wp-settings.php from WP 3.5

11 years agoTame wp-config.php
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.

11 years agopass action as message for assertions
scribu [Sun, 30 Dec 2012 08:15:05 +0000 (10:15 +0200)]
pass action as message for assertions

11 years agoadd test for when db tables aren't installed
scribu [Sun, 30 Dec 2012 08:09:45 +0000 (10:09 +0200)]
add test for when db tables aren't installed

11 years agoMerge pull request #259 from wp-cli/bdd
Cristi Burcă [Sun, 30 Dec 2012 08:05:26 +0000 (00:05 -0800)]
Merge pull request #259 from wp-cli/bdd

Switch to BDD

11 years agomove WP_CLI_Command_Runner class out of bootstrap.php
scribu [Sat, 29 Dec 2012 21:06:12 +0000 (23:06 +0200)]
move WP_CLI_Command_Runner class out of bootstrap.php

11 years agoexplicitly test creating config file and running install
scribu [Sat, 29 Dec 2012 21:03:14 +0000 (23:03 +0200)]
explicitly test creating config file and running install

11 years agoWordpress_Installer + run_wp_cli() = WP_CLI_Command_Runner
scribu [Sat, 29 Dec 2012 20:50:28 +0000 (22:50 +0200)]
Wordpress_Installer + run_wp_cli() = WP_CLI_Command_Runner

11 years agobreak out compose_assoc_args() utility and use in test runner
scribu [Sat, 29 Dec 2012 20:16:23 +0000 (22:16 +0200)]
break out compose_assoc_args() utility and use in test runner

11 years agoWP_CLI::compose_args() -> Utils\compose_args()
scribu [Sat, 29 Dec 2012 20:04:38 +0000 (22:04 +0200)]
WP_CLI::compose_args() -> Utils\compose_args()

11 years agotransform Command_Runner class into run_wp_cli() method
scribu [Sat, 29 Dec 2012 19:54:52 +0000 (21:54 +0200)]
transform Command_Runner class into run_wp_cli() method

11 years agoset @scenarion annotation on a single line
scribu [Sat, 29 Dec 2012 19:28:57 +0000 (21:28 +0200)]
set @scenarion annotation on a single line

11 years agoPHPUnit_Extensions_Story_ResultPrinter_Text is not that great
scribu [Sat, 29 Dec 2012 19:19:55 +0000 (21:19 +0200)]
PHPUnit_Extensions_Story_ResultPrinter_Text is not that great

11 years agodismantle full_install() method
scribu [Sat, 29 Dec 2012 19:06:11 +0000 (21:06 +0200)]
dismantle full_install() method

11 years agomove supporting code to a WP_CLI_Spec class
scribu [Sat, 29 Dec 2012 19:01:24 +0000 (21:01 +0200)]
move supporting code to a WP_CLI_Spec class

11 years agoremove old test cases and move all supporting code to bootstrap.php
scribu [Sat, 29 Dec 2012 18:50:52 +0000 (20:50 +0200)]
remove old test cases and move all supporting code to bootstrap.php

11 years agomore scenarios
scribu [Sat, 29 Dec 2012 18:29:46 +0000 (20:29 +0200)]
more scenarios

11 years agoadd full_install() method to WordPress_Installer
scribu [Sat, 29 Dec 2012 18:29:13 +0000 (20:29 +0200)]
add full_install() method to WordPress_Installer

11 years agoreset database between scenarios
scribu [Sat, 29 Dec 2012 18:10:53 +0000 (20:10 +0200)]
reset database between scenarios

11 years agoadd first scenario
scribu [Sat, 29 Dec 2012 17:31:30 +0000 (19:31 +0200)]
add first scenario

11 years agoupdate phpunit.xml to run the spec tests
scribu [Sat, 29 Dec 2012 17:30:07 +0000 (19:30 +0200)]
update phpunit.xml to run the spec tests

11 years agoadd phpunit-story as a dev dependency
scribu [Sat, 29 Dec 2012 17:17:43 +0000 (19:17 +0200)]
add phpunit-story as a dev dependency

11 years agodon't require passing a runner to Wordpress_Installer
scribu [Sat, 29 Dec 2012 17:43:08 +0000 (19:43 +0200)]
don't require passing a runner to Wordpress_Installer

11 years agoremove old core-Test.php file
scribu [Sat, 29 Dec 2012 17:20:15 +0000 (19:20 +0200)]
remove old core-Test.php file

11 years agominor cleanup in `wp post generate`
scribu [Sat, 29 Dec 2012 17:14:53 +0000 (19:14 +0200)]
minor cleanup in `wp post generate`

11 years agouse wp_insert_post() in `wp post generate` again.
scribu [Sat, 29 Dec 2012 16:39:39 +0000 (18:39 +0200)]
use wp_insert_post() in `wp post generate` again.

fixes #217

11 years agodon't really need an Execution_Result class
scribu [Sat, 29 Dec 2012 16:31:37 +0000 (18:31 +0200)]
don't really need an Execution_Result class

11 years agotests: use system(), instead of futzing with sh and temp files
scribu [Sat, 29 Dec 2012 16:28:56 +0000 (18:28 +0200)]
tests: use system(), instead of futzing with sh and temp files

11 years agoMerge pull request #256 from wp-cli/disable-commands
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

11 years agodismantle Dispatcher\traverse()
scribu [Sat, 29 Dec 2012 15:59:41 +0000 (17:59 +0200)]
dismantle Dispatcher\traverse()

11 years agomove phpunit.xml to the root dir
scribu [Sat, 29 Dec 2012 15:41:13 +0000 (17:41 +0200)]
move phpunit.xml to the root dir

11 years agoadd phpunit.xml file
scribu [Sat, 29 Dec 2012 15:38:09 +0000 (17:38 +0200)]
add phpunit.xml file

11 years agofix test_message_explains_that_config_must_be_present_before_install(). see #170
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

11 years agocheck disabled commands during registration, instead of during invocation
scribu [Sat, 29 Dec 2012 15:07:23 +0000 (17:07 +0200)]
check disabled commands during registration, instead of during invocation

11 years agomove logic from CompositeCommand constructor to WP_CLI class
scribu [Sat, 29 Dec 2012 14:54:09 +0000 (16:54 +0200)]
move logic from CompositeCommand constructor to WP_CLI class

11 years agocreate new command instance on each invocation. fixes #257
scribu [Sat, 29 Dec 2012 14:22:00 +0000 (16:22 +0200)]
create new command instance on each invocation. fixes #257

11 years agointroduce 'disabled_commands' config key
scribu [Sat, 29 Dec 2012 13:23:34 +0000 (15:23 +0200)]
introduce 'disabled_commands' config key

11 years agointroduce AbstractCommandContainer class
scribu [Sat, 29 Dec 2012 12:45:50 +0000 (14:45 +0200)]
introduce AbstractCommandContainer class

11 years agoadd_command(): move logic back to WP_CLI class
scribu [Sat, 29 Dec 2012 12:39:27 +0000 (14:39 +0200)]
add_command(): move logic back to WP_CLI class

11 years agomake load_command() protected
scribu [Sat, 29 Dec 2012 12:32:08 +0000 (14:32 +0200)]
make load_command() protected

11 years agotransform get_path() method into a standalone function
scribu [Sat, 29 Dec 2012 11:51:44 +0000 (13:51 +0200)]
transform get_path() method into a standalone function

also introduce AtomicCommand interface

11 years agoonly command containers can have subcommands
scribu [Sat, 29 Dec 2012 10:59:09 +0000 (12:59 +0200)]
only command containers can have subcommands

11 years agoregenerate man pages. see #229
scribu [Sat, 29 Dec 2012 10:52:25 +0000 (12:52 +0200)]
regenerate man pages. see #229

11 years agorename Composite interface to CommandContainer
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.

11 years agoImplemented --raw flag so that one only gets the registration of a taxonomy or post...
jmslbam [Sat, 29 Dec 2012 00:25:46 +0000 (01:25 +0100)]
Implemented --raw flag so that one only gets the registration of a taxonomy or post type WITH labels. Without these you will also get a init and update messages. But I think update messages also need to be a part of the --raw flag

11 years agoA little bit of WordPress Conding Standards
jmslbam [Fri, 28 Dec 2012 22:59:18 +0000 (23:59 +0100)]
A little bit of WordPress Conding Standards

11 years agoMoved scaffold from src/php/wp-cli/commands/internals to php/commands
jmslbam [Fri, 28 Dec 2012 22:30:11 +0000 (23:30 +0100)]
Moved scaffold from src/php/wp-cli/commands/internals to php/commands

11 years agoMerge branch 'master' of git://github.com/wp-cli/wp-cli
jmslbam [Fri, 28 Dec 2012 22:10:36 +0000 (23:10 +0100)]
Merge branch 'master' of git://github.com/wp-cli/wp-cli

11 years agoCleaned up and kind of closes #2
jmslbam [Fri, 28 Dec 2012 21:56:49 +0000 (22:56 +0100)]
Cleaned up and kind of closes #2

11 years agoRenamed the --plugin to --plugin_name and also really fixed #5 so it always return...
jmslbam [Fri, 28 Dec 2012 21:30:13 +0000 (22:30 +0100)]
Renamed the --plugin to --plugin_name and also really fixed #5 so it always return the default

11 years agoUse theme, plugin name or YOUR-TEXTDOMAIN as textdomain, closes #5
jmslbam [Fri, 28 Dec 2012 20:21:45 +0000 (21:21 +0100)]
Use theme, plugin name or YOUR-TEXTDOMAIN as textdomain, closes #5

11 years agoImplemented the STDOUT --theme flag and or --plugin="" for taxonomies
jmslbam [Fri, 28 Dec 2012 20:02:19 +0000 (21:02 +0100)]
Implemented the STDOUT --theme flag and or --plugin="" for taxonomies

11 years agoImplemented the STDOUT --theme flag and or --plugin="" for post_types
jmslbam [Fri, 28 Dec 2012 19:54:27 +0000 (20:54 +0100)]
Implemented the STDOUT --theme flag and or --plugin="" for post_types

11 years agointroduce CommandWithDBObject class
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

11 years agomake wp user delete accept multiple ids. see #229
scribu [Fri, 28 Dec 2012 14:33:11 +0000 (16:33 +0200)]
make wp user delete accept multiple ids. see #229

11 years agoMerge pull request #255 from wp-cli/csv-iterator
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

11 years agomake iterator more lenient
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

11 years agoreplace parse_csv() with CSVIterator class
scribu [Fri, 28 Dec 2012 12:15:17 +0000 (14:15 +0200)]
replace parse_csv() with CSVIterator class

11 years agomove set_wp_root() closer to locate_wp_config()
scribu [Fri, 28 Dec 2012 11:51:28 +0000 (13:51 +0200)]
move set_wp_root() closer to locate_wp_config()

11 years agoseparate wp-dependent utilities from independent ones
scribu [Fri, 28 Dec 2012 11:46:06 +0000 (13:46 +0200)]
separate wp-dependent utilities from independent ones

11 years agoMerge pull request #254 from wp-cli/generic-config
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

11 years agowhitelist config keys
scribu [Fri, 28 Dec 2012 08:17:19 +0000 (10:17 +0200)]
whitelist config keys

11 years agocorrect extension is .yml, not .yaml
scribu [Fri, 28 Dec 2012 08:06:37 +0000 (10:06 +0200)]
correct extension is .yml, not .yaml