OSDN Git Service

wvm/wvm.git
11 years agoadded success message if remote request code is 200
Brandon Lavigne [Wed, 6 Feb 2013 17:51:21 +0000 (09:51 -0800)]
added success message if remote request code is 200

11 years agofixed undefined variables
Brandon Lavigne [Wed, 6 Feb 2013 17:20:46 +0000 (09:20 -0800)]
fixed undefined variables

11 years agoremoved spaces in the synopsis
Brandon Lavigne [Wed, 6 Feb 2013 02:06:18 +0000 (18:06 -0800)]
removed spaces in the synopsis

11 years agoadded default timeout and generic theme description from author and theme name.
Brandon Lavigne [Wed, 6 Feb 2013 00:45:44 +0000 (16:45 -0800)]
added default timeout and generic theme description from author and theme name.

11 years agoadded man-src page for scaffold _s, tidied up formatting.
Brandon Lavigne [Tue, 5 Feb 2013 22:17:35 +0000 (14:17 -0800)]
added man-src page for scaffold _s, tidied up formatting.

11 years agochanged shell_exec to properly use wp_remote_post, unzip, and unlink the temp file
Brandon Lavigne [Tue, 5 Feb 2013 20:06:43 +0000 (12:06 -0800)]
changed shell_exec to properly use wp_remote_post, unzip, and unlink the temp file

11 years agoInstead of using bash unzip, using WP_CLI native theme install, with optional activate
Brandon Lavigne [Tue, 5 Feb 2013 03:40:41 +0000 (19:40 -0800)]
Instead of using bash unzip, using WP_CLI native theme install, with optional activate

11 years agoAdded initial version of wp scaffold _s
Brandon Lavigne [Sun, 3 Feb 2013 00:04:16 +0000 (16:04 -0800)]
Added initial version of wp scaffold _s

11 years agobump version to 0.9.0-dev
scribu [Sun, 27 Jan 2013 16:26:21 +0000 (17:26 +0100)]
bump version to 0.9.0-dev

11 years agocheck that the plugin directory exists. fixes #281
scribu [Sun, 27 Jan 2013 16:25:30 +0000 (17:25 +0100)]
check that the plugin directory exists. fixes #281

11 years agoPHP files don't need to be executable
scribu [Sun, 27 Jan 2013 16:19:12 +0000 (17:19 +0100)]
PHP files don't need to be executable

11 years agoinclude only php files in build.xml
scribu [Sat, 26 Jan 2013 18:43:50 +0000 (19:43 +0100)]
include only php files in build.xml

11 years agoexclude .git files via build.xml
scribu [Sat, 26 Jan 2013 16:07:55 +0000 (17:07 +0100)]
exclude .git files via build.xml

11 years agoset version to 0.8.0 v0.8.0
scribu [Sat, 26 Jan 2013 14:22:14 +0000 (15:22 +0100)]
set version to 0.8.0

11 years agoremove extra tab from extended scaffolds
scribu [Sat, 26 Jan 2013 03:06:05 +0000 (04:06 +0100)]
remove extra tab from extended scaffolds

11 years agoscaffold plugin: made success msg consistent with other scaffolds
scribu [Sat, 26 Jan 2013 03:03:24 +0000 (04:03 +0100)]
scaffold plugin: made success msg consistent with other scaffolds

11 years agonormalize and cache path returned by locate_wp_config()
scribu [Sat, 26 Jan 2013 02:57:06 +0000 (03:57 +0100)]
normalize and cache path returned by locate_wp_config()

11 years agoremove unnecessary leading slash in locate_wp_config()
scribu [Sat, 26 Jan 2013 02:49:14 +0000 (03:49 +0100)]
remove unnecessary leading slash in locate_wp_config()

11 years agobump version to 0.8.0-beta
scribu [Wed, 23 Jan 2013 03:44:00 +0000 (05:44 +0200)]
bump version to 0.8.0-beta

11 years agostrict comparison for 'runtime' key. see #277
scribu [Wed, 23 Jan 2013 03:37:39 +0000 (05:37 +0200)]
strict comparison for 'runtime' key. see #277

11 years agofix check for completions in WP_CLI::error()
scribu [Wed, 23 Jan 2013 03:23:46 +0000 (05:23 +0200)]
fix check for completions in WP_CLI::error()

11 years agoadd --config global param
scribu [Wed, 23 Jan 2013 03:15:27 +0000 (05:15 +0200)]
add --config global param

11 years agogenerate synopsis for global command from config-spec
scribu [Wed, 23 Jan 2013 03:14:15 +0000 (05:14 +0200)]
generate synopsis for global command from config-spec

11 years agoupdate config-spec.php. see #267
scribu [Wed, 23 Jan 2013 02:46:53 +0000 (04:46 +0200)]
update config-spec.php. see #267

11 years agosupport --color and --no-color special args. closes #267
scribu [Wed, 23 Jan 2013 02:44:34 +0000 (04:44 +0200)]
support --color and --no-color special args. closes #267

11 years agoMerge pull request #277 from wp-cli/config-spec
Cristi Burcă [Wed, 23 Jan 2013 02:43:16 +0000 (18:43 -0800)]
Merge pull request #277 from wp-cli/config-spec

Better organization of config/runtime keys

11 years agoadd --param-dump
scribu [Tue, 22 Jan 2013 23:33:01 +0000 (01:33 +0200)]
add --param-dump

11 years agostoring the config spec in a static variable is not needed
scribu [Tue, 22 Jan 2013 23:30:39 +0000 (01:30 +0200)]
storing the config spec in a static variable is not needed

get_config_spec() is only called once per instantiation, or at most 2
times.

11 years agomove even more code from utils.php into WP_CLI\Runner
scribu [Tue, 22 Jan 2013 21:51:49 +0000 (23:51 +0200)]
move even more code from utils.php into WP_CLI\Runner

11 years agointroduce WP_CLI\Runner class
scribu [Tue, 22 Jan 2013 21:23:06 +0000 (23:23 +0200)]
introduce WP_CLI\Runner class

It contains all the logic related to argument handling and WP loading.

11 years agorename bootstrap() to load_depdencies()
scribu [Tue, 22 Jan 2013 20:48:52 +0000 (22:48 +0200)]
rename bootstrap() to load_depdencies()

11 years agomove special args handling to separate class
scribu [Tue, 22 Jan 2013 20:47:19 +0000 (22:47 +0200)]
move special args handling to separate class

11 years agomake use of defaults
scribu [Sun, 20 Jan 2013 17:08:39 +0000 (19:08 +0200)]
make use of defaults

11 years agoreplace WP_CLI_QUIET with WP_CLI::get_config('quiet')
scribu [Sun, 20 Jan 2013 16:35:44 +0000 (18:35 +0200)]
replace WP_CLI_QUIET with WP_CLI::get_config('quiet')

11 years agoadd tests for --quiet flag and don't suppress output on fatal error
scribu [Sun, 20 Jan 2013 16:30:50 +0000 (18:30 +0200)]
add tests for --quiet flag and don't suppress output on fatal error

11 years agoadd config spec
scribu [Sun, 20 Jan 2013 04:03:34 +0000 (06:03 +0200)]
add config spec

11 years agoreplace WP_ROOT with ABSPATH
scribu [Sun, 20 Jan 2013 16:53:28 +0000 (18:53 +0200)]
replace WP_ROOT with ABSPATH

11 years agomerge back run() method into after_wp_load()
scribu [Sun, 20 Jan 2013 04:05:39 +0000 (06:05 +0200)]
merge back run() method into after_wp_load()

not needed and avoids confusion with run_command()

11 years agoadd --debug global param. fixes #177
scribu [Sat, 19 Jan 2013 19:36:05 +0000 (21:36 +0200)]
add --debug global param. fixes #177

11 years agofix path to wp-cli.yml. see #267
scribu [Sat, 19 Jan 2013 19:34:51 +0000 (21:34 +0200)]
fix path to wp-cli.yml. see #267

11 years agoadd --config global parameter. fixes #272
scribu [Sat, 19 Jan 2013 13:45:52 +0000 (15:45 +0200)]
add --config global parameter. fixes #272

11 years ago'color', not 'colors'. see #267
scribu [Sat, 19 Jan 2013 13:19:56 +0000 (15:19 +0200)]
'color', not 'colors'. see #267

11 years agoadd 'color' config option. fixes #267
scribu [Sat, 19 Jan 2013 13:14:16 +0000 (15:14 +0200)]
add 'color' config option. fixes #267

11 years agomove run_command() back into the WP_CLI class
scribu [Tue, 15 Jan 2013 13:29:49 +0000 (15:29 +0200)]
move run_command() back into the WP_CLI class

11 years agoscaffold taxonomy: remove control args from defaults
scribu [Wed, 2 Jan 2013 23:50:43 +0000 (01:50 +0200)]
scaffold taxonomy: remove control args from defaults

11 years agoremove unused '<?php' from templates
scribu [Wed, 2 Jan 2013 23:49:32 +0000 (01:49 +0200)]
remove unused '<?php' from templates

was only used to get syntax highlighting, when the templates ended in
.php

11 years agochange template extensions from .php to .mustache, to avoid compatibility issues...
scribu [Wed, 2 Jan 2013 23:44:58 +0000 (01:44 +0200)]
change template extensions from .php to .mustache, to avoid compatibility issues with pre-commit linters etc.

11 years agorun preg_replace() only once, on the whole string. see #271
scribu [Wed, 2 Jan 2013 08:50:34 +0000 (10:50 +0200)]
run preg_replace() only once, on the whole string. see #271

11 years agoreplace just '<?php', instead of ignoring the whole line. fixes #271
scribu [Wed, 2 Jan 2013 08:48:12 +0000 (10:48 +0200)]
replace just '<?php', instead of ignoring the whole line. fixes #271

11 years agoMerge pull request #269 from wp-cli/cmd-dump
Cristi Burcă [Wed, 2 Jan 2013 08:40:04 +0000 (00:40 -0800)]
Merge pull request #269 from wp-cli/cmd-dump

Add --cmd-dump flag

11 years agorun --cmd-dump without needing WP files
scribu [Wed, 2 Jan 2013 08:33:18 +0000 (10:33 +0200)]
run --cmd-dump without needing WP files

11 years agoremove site-related utilities (moved to site repo)
scribu [Wed, 2 Jan 2013 08:15:32 +0000 (10:15 +0200)]
remove site-related utilities (moved to site repo)

11 years agouse --cmd-dump in compare-cmd
scribu [Tue, 1 Jan 2013 22:16:23 +0000 (00:16 +0200)]
use --cmd-dump in compare-cmd

11 years agore-generate man pages
scribu [Tue, 1 Jan 2013 22:04:37 +0000 (00:04 +0200)]
re-generate man pages

11 years agoMerge pull request #199 from wp-cli/scaffold-plugin
Cristi Burcă [Tue, 1 Jan 2013 21:56:57 +0000 (13:56 -0800)]
Merge pull request #199 from wp-cli/scaffold-plugin

Generate code for a plugin

11 years agomove non-wp-related code out of after_wp_load()
scribu [Tue, 1 Jan 2013 21:17:23 +0000 (23:17 +0200)]
move non-wp-related code out of after_wp_load()

11 years agoremove intermediate value in cmd_dump()
scribu [Tue, 1 Jan 2013 21:03:41 +0000 (23:03 +0200)]
remove intermediate value in cmd_dump()

11 years agoadd 'internal' key and put it to use
scribu [Tue, 1 Jan 2013 21:02:42 +0000 (23:02 +0200)]
add 'internal' key and put it to use

11 years agoconvert all top-level command descriptions to the imperative mood
scribu [Tue, 1 Jan 2013 20:46:00 +0000 (22:46 +0200)]
convert all top-level command descriptions to the imperative mood

11 years agoadd cmd-list.php utility
scribu [Tue, 1 Jan 2013 20:00:28 +0000 (22:00 +0200)]
add cmd-list.php utility

11 years agomove read_json() to separate file
scribu [Tue, 1 Jan 2013 19:49:30 +0000 (21:49 +0200)]
move read_json() to separate file

11 years agoit's actually easier if we pass the whole 'wp' command
scribu [Tue, 1 Jan 2013 19:44:57 +0000 (21:44 +0200)]
it's actually easier if we pass the whole 'wp' command

11 years agosynopsis should always be a string
scribu [Tue, 1 Jan 2013 18:18:42 +0000 (20:18 +0200)]
synopsis should always be a string

11 years agoadd external syn-list.php utility
scribu [Tue, 1 Jan 2013 17:37:44 +0000 (19:37 +0200)]
add external syn-list.php utility

11 years agoreplace --syn-list with --cmd-dump
scribu [Tue, 1 Jan 2013 16:56:53 +0000 (18:56 +0200)]
replace --syn-list with --cmd-dump

11 years agoremove @subpackage commands/internals
scribu [Tue, 1 Jan 2013 20:35:58 +0000 (22:35 +0200)]
remove @subpackage commands/internals

11 years agoupdate top-level command descriptions and move add_command() below the class definitions
scribu [Tue, 1 Jan 2013 20:31:20 +0000 (22:31 +0200)]
update top-level command descriptions and move add_command() below the class definitions

11 years agoalways use the plugin slug for the textdomain
scribu [Tue, 1 Jan 2013 12:55:03 +0000 (14:55 +0200)]
always use the plugin slug for the textdomain

11 years agoadd man page for `wp scaffold plugin`
scribu [Tue, 1 Jan 2013 12:52:31 +0000 (14:52 +0200)]
add man page for `wp scaffold plugin`

11 years agouse create_file() for cpt and tax scaffolds
scribu [Tue, 1 Jan 2013 12:46:05 +0000 (14:46 +0200)]
use create_file() for cpt and tax scaffolds

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()