OSDN Git Service
scribu [Mon, 11 Feb 2013 20:17:43 +0000 (22:17 +0200)]
make synopsis parser return unknown tokens
Cristi Burcă [Mon, 11 Feb 2013 20:04:03 +0000 (12:04 -0800)]
Merge pull request #297 from wp-cli/synopsis-tests
Add unit tests for synopsis parser
scribu [Mon, 11 Feb 2013 19:53:28 +0000 (21:53 +0200)]
use assertCount() instead of assertEquals()
scribu [Mon, 11 Feb 2013 19:51:12 +0000 (21:51 +0200)]
add test for combined param types
scribu [Mon, 11 Feb 2013 19:41:05 +0000 (21:41 +0200)]
check that other parameter types are 0
scribu [Mon, 11 Feb 2013 17:14:07 +0000 (19:14 +0200)]
add tests for SynopsisParser
scribu [Mon, 11 Feb 2013 18:53:55 +0000 (20:53 +0200)]
introduce SynopsisParser class
scribu [Mon, 11 Feb 2013 18:10:31 +0000 (20:10 +0200)]
make cmd runner return command string, for easy debugging
scribu [Sun, 10 Feb 2013 16:31:33 +0000 (18:31 +0200)]
add --force flag to wp core download. fixes #221
scribu [Sun, 10 Feb 2013 15:35:17 +0000 (17:35 +0200)]
Use `cp -r` instead of `mv` for moving WP files into the current dir
This allows installing WP into a directory that already has a wp-content
dir.
Props @carlalexander. Closes #293
Cristi Burcă [Sun, 10 Feb 2013 15:24:35 +0000 (07:24 -0800)]
Merge pull request #295 from ocean90/fix-no-wp-install-error
Fix error output if no WordPress install exists
Dominik Schilling [Sun, 10 Feb 2013 10:53:33 +0000 (11:53 +0100)]
Fix error output if no WordPress install exists
Cristi Burcă [Fri, 8 Feb 2013 19:27:10 +0000 (11:27 -0800)]
Merge pull request #291 from wp-cli/fix-291
"Error Connecting To Database" HTML output
scribu [Fri, 8 Feb 2013 02:14:44 +0000 (04:14 +0200)]
fix WP_CLI::error() not exiting
scribu [Fri, 8 Feb 2013 01:12:09 +0000 (03:12 +0200)]
tests: separate stdout from stderr
The more precise assertions expose several buggy tests.
Also reverts WP_CLI::error() second parameter to $label, since sending
the first line to STDERR and subsequent ones to STDOUT is confusing.
If you want to have a multiline error message, just insert \n
characters.
scribu [Fri, 8 Feb 2013 00:28:07 +0000 (02:28 +0200)]
add our own wp_die() handler
scribu [Thu, 7 Feb 2013 22:21:55 +0000 (00:21 +0200)]
make 'wp install' imply 'empty dir'
scribu [Thu, 7 Feb 2013 22:19:34 +0000 (00:19 +0200)]
add test case
scribu [Thu, 7 Feb 2013 01:14:50 +0000 (03:14 +0200)]
move /templates/ out of /php/ since it doesn't contain PHP files
scribu [Wed, 6 Feb 2013 18:08:38 +0000 (20:08 +0200)]
regenerate some manpages
scribu [Wed, 6 Feb 2013 18:04:00 +0000 (20:04 +0200)]
generate manpage for scaffold _s. see #285
Cristi Burcă [Wed, 6 Feb 2013 18:01:46 +0000 (10:01 -0800)]
Merge pull request #285 from drrobotnik/master
Added wp scaffold _s
Brandon Lavigne [Wed, 6 Feb 2013 17:51:21 +0000 (09:51 -0800)]
added success message if remote request code is 200
Cristi Burcă [Wed, 6 Feb 2013 17:24:58 +0000 (09:24 -0800)]
Merge pull request #289 from jmslbam/master
Scaffold filename using slug and not machinename
Brandon Lavigne [Wed, 6 Feb 2013 17:20:46 +0000 (09:20 -0800)]
fixed undefined variables
Jaime Martinez [Wed, 6 Feb 2013 17:16:42 +0000 (18:16 +0100)]
Changed filename from machinename to slug
Because `wp scaffold post-type jm-foo` scaffolds a file name jm_foo.php bacause the machinename hyphens get replaced by underscores.
Same behaviour as the plugin scaffold.
Hyphens should separate words.
Brandon Lavigne [Wed, 6 Feb 2013 02:06:18 +0000 (18:06 -0800)]
removed spaces in the synopsis
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.
Brandon Lavigne [Tue, 5 Feb 2013 22:17:35 +0000 (14:17 -0800)]
added man-src page for scaffold _s, tidied up formatting.
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
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
Cristi Burcă [Sun, 3 Feb 2013 20:40:36 +0000 (12:40 -0800)]
Merge pull request #284 from wp-cli/user-list-csv
Output a list of users as CSV or JSON with a new CSV helper utility
scribu [Sun, 3 Feb 2013 20:37:16 +0000 (22:37 +0200)]
Reverse parameter order in output_csv() utility
... so that $headers can actually be optional.
Also fix coding standards violations.
scribu [Sun, 3 Feb 2013 20:31:50 +0000 (22:31 +0200)]
add some examples for user list and regenerate manpage
Daniel Bachhuber [Sun, 3 Feb 2013 20:23:14 +0000 (12:23 -0800)]
Use fputcsv with STDOUT instead of building our own CSV. Props @scribu
Daniel Bachhuber [Sun, 3 Feb 2013 18:52:02 +0000 (10:52 -0800)]
Use the row we built to make sure we're only presenting data that correlates to headers
Daniel Bachhuber [Sun, 3 Feb 2013 18:51:15 +0000 (10:51 -0800)]
Mention default output
Daniel Bachhuber [Sun, 3 Feb 2013 18:25:17 +0000 (10:25 -0800)]
Update man doc
Daniel Bachhuber [Sun, 3 Feb 2013 18:20:55 +0000 (10:20 -0800)]
Simplify the code to generate CSV and JSON output by typecasting. Feels a little dirty, but no harm no fowl.
Daniel Bachhuber [Sun, 3 Feb 2013 18:14:18 +0000 (10:14 -0800)]
If only --ids are requested, we don't need to do anything else
Brandon Lavigne [Sun, 3 Feb 2013 00:04:16 +0000 (16:04 -0800)]
Added initial version of wp scaffold _s
Daniel Bachhuber [Sat, 2 Feb 2013 19:42:39 +0000 (11:42 -0800)]
Output a list of users as CSV or JSON with a new CSV helper utility
scribu [Sun, 27 Jan 2013 16:26:21 +0000 (17:26 +0100)]
bump version to 0.9.0-dev
scribu [Sun, 27 Jan 2013 16:25:30 +0000 (17:25 +0100)]
check that the plugin directory exists. fixes #281
scribu [Sun, 27 Jan 2013 16:19:12 +0000 (17:19 +0100)]
PHP files don't need to be executable
scribu [Sat, 26 Jan 2013 18:43:50 +0000 (19:43 +0100)]
include only php files in build.xml
scribu [Sat, 26 Jan 2013 16:07:55 +0000 (17:07 +0100)]
exclude .git files via build.xml
scribu [Sat, 26 Jan 2013 14:22:14 +0000 (15:22 +0100)]
set version to 0.8.0
scribu [Sat, 26 Jan 2013 03:06:05 +0000 (04:06 +0100)]
remove extra tab from extended scaffolds
scribu [Sat, 26 Jan 2013 03:03:24 +0000 (04:03 +0100)]
scaffold plugin: made success msg consistent with other scaffolds
scribu [Sat, 26 Jan 2013 02:57:06 +0000 (03:57 +0100)]
normalize and cache path returned by locate_wp_config()
scribu [Sat, 26 Jan 2013 02:49:14 +0000 (03:49 +0100)]
remove unnecessary leading slash in locate_wp_config()
scribu [Wed, 23 Jan 2013 03:44:00 +0000 (05:44 +0200)]
bump version to 0.8.0-beta
scribu [Wed, 23 Jan 2013 03:37:39 +0000 (05:37 +0200)]
strict comparison for 'runtime' key. see #277
scribu [Wed, 23 Jan 2013 03:23:46 +0000 (05:23 +0200)]
fix check for completions in WP_CLI::error()
scribu [Wed, 23 Jan 2013 03:15:27 +0000 (05:15 +0200)]
add --config global param
scribu [Wed, 23 Jan 2013 03:14:15 +0000 (05:14 +0200)]
generate synopsis for global command from config-spec
scribu [Wed, 23 Jan 2013 02:46:53 +0000 (04:46 +0200)]
update config-spec.php. see #267
scribu [Wed, 23 Jan 2013 02:44:34 +0000 (04:44 +0200)]
support --color and --no-color special args. closes #267
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
scribu [Tue, 22 Jan 2013 23:33:01 +0000 (01:33 +0200)]
add --param-dump
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.
scribu [Tue, 22 Jan 2013 21:51:49 +0000 (23:51 +0200)]
move even more code from utils.php into WP_CLI\Runner
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.
scribu [Tue, 22 Jan 2013 20:48:52 +0000 (22:48 +0200)]
rename bootstrap() to load_depdencies()
scribu [Tue, 22 Jan 2013 20:47:19 +0000 (22:47 +0200)]
move special args handling to separate class
scribu [Sun, 20 Jan 2013 17:08:39 +0000 (19:08 +0200)]
make use of defaults
scribu [Sun, 20 Jan 2013 16:35:44 +0000 (18:35 +0200)]
replace WP_CLI_QUIET with WP_CLI::get_config('quiet')
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
scribu [Sun, 20 Jan 2013 04:03:34 +0000 (06:03 +0200)]
add config spec
scribu [Sun, 20 Jan 2013 16:53:28 +0000 (18:53 +0200)]
replace WP_ROOT with ABSPATH
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()
scribu [Sat, 19 Jan 2013 19:36:05 +0000 (21:36 +0200)]
add --debug global param. fixes #177
scribu [Sat, 19 Jan 2013 19:34:51 +0000 (21:34 +0200)]
fix path to wp-cli.yml. see #267
scribu [Sat, 19 Jan 2013 13:45:52 +0000 (15:45 +0200)]
add --config global parameter. fixes #272
scribu [Sat, 19 Jan 2013 13:19:56 +0000 (15:19 +0200)]
'color', not 'colors'. see #267
scribu [Sat, 19 Jan 2013 13:14:16 +0000 (15:14 +0200)]
add 'color' config option. fixes #267
scribu [Tue, 15 Jan 2013 13:29:49 +0000 (15:29 +0200)]
move run_command() back into the WP_CLI class
scribu [Wed, 2 Jan 2013 23:50:43 +0000 (01:50 +0200)]
scaffold taxonomy: remove control args from defaults
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
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.
scribu [Wed, 2 Jan 2013 08:50:34 +0000 (10:50 +0200)]
run preg_replace() only once, on the whole string. see #271
scribu [Wed, 2 Jan 2013 08:48:12 +0000 (10:48 +0200)]
replace just '<?php', instead of ignoring the whole line. fixes #271
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
scribu [Wed, 2 Jan 2013 08:33:18 +0000 (10:33 +0200)]
run --cmd-dump without needing WP files
scribu [Wed, 2 Jan 2013 08:15:32 +0000 (10:15 +0200)]
remove site-related utilities (moved to site repo)
scribu [Tue, 1 Jan 2013 22:16:23 +0000 (00:16 +0200)]
use --cmd-dump in compare-cmd
scribu [Tue, 1 Jan 2013 22:04:37 +0000 (00:04 +0200)]
re-generate man pages
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
scribu [Tue, 1 Jan 2013 21:17:23 +0000 (23:17 +0200)]
move non-wp-related code out of after_wp_load()
scribu [Tue, 1 Jan 2013 21:03:41 +0000 (23:03 +0200)]
remove intermediate value in cmd_dump()
scribu [Tue, 1 Jan 2013 21:02:42 +0000 (23:02 +0200)]
add 'internal' key and put it to use
scribu [Tue, 1 Jan 2013 20:46:00 +0000 (22:46 +0200)]
convert all top-level command descriptions to the imperative mood
scribu [Tue, 1 Jan 2013 20:00:28 +0000 (22:00 +0200)]
add cmd-list.php utility
scribu [Tue, 1 Jan 2013 19:49:30 +0000 (21:49 +0200)]
move read_json() to separate file
scribu [Tue, 1 Jan 2013 19:44:57 +0000 (21:44 +0200)]
it's actually easier if we pass the whole 'wp' command
scribu [Tue, 1 Jan 2013 18:18:42 +0000 (20:18 +0200)]
synopsis should always be a string
scribu [Tue, 1 Jan 2013 17:37:44 +0000 (19:37 +0200)]
add external syn-list.php utility
scribu [Tue, 1 Jan 2013 16:56:53 +0000 (18:56 +0200)]
replace --syn-list with --cmd-dump
scribu [Tue, 1 Jan 2013 20:35:58 +0000 (22:35 +0200)]
remove @subpackage commands/internals