OSDN Git Service

wvm/wvm.git
11 years agoregenerate manpages
scribu [Wed, 13 Feb 2013 16:19:46 +0000 (18:19 +0200)]
regenerate manpages

11 years agoremove superfluous parameters from post and taxonomy scaffolds
scribu [Wed, 13 Feb 2013 16:17:39 +0000 (18:17 +0200)]
remove superfluous parameters from post and taxonomy scaffolds

11 years agofix indenting for term command. see #286
scribu [Wed, 13 Feb 2013 15:47:05 +0000 (17:47 +0200)]
fix indenting for term command. see #286

11 years agoMerge pull request #286 from wp-cli/term-command
Cristi Burcă [Wed, 13 Feb 2013 15:29:17 +0000 (07:29 -0800)]
Merge pull request #286 from wp-cli/term-command

A term command with subcommands for creating, updating, deleting and lis...

11 years agoadd generated man pages
scribu [Wed, 13 Feb 2013 15:23:46 +0000 (17:23 +0200)]
add generated man pages

11 years agoreplace <parent> with <term-id> for wp term update
scribu [Wed, 13 Feb 2013 15:23:14 +0000 (17:23 +0200)]
replace <parent> with <term-id> for wp term update

11 years agouse format_items() utility in wp user list
scribu [Wed, 13 Feb 2013 15:18:28 +0000 (17:18 +0200)]
use format_items() utility in wp user list

11 years agoreplace <parent> with <term-id>
scribu [Wed, 13 Feb 2013 15:07:24 +0000 (17:07 +0200)]
replace <parent> with <term-id>

11 years agodelete files used for generating pear packages.
scribu [Tue, 12 Feb 2013 04:37:07 +0000 (06:37 +0200)]
delete files used for generating pear packages.

see #301. closes #39

11 years agoMerge pull request #301 from wp-cli/phar
Cristi Burcă [Wed, 13 Feb 2013 00:33:27 +0000 (16:33 -0800)]
Merge pull request #301 from wp-cli/phar

Distribute as a Phar archive

11 years agoset version to 0.9.0-alpha
scribu [Wed, 13 Feb 2013 00:20:42 +0000 (02:20 +0200)]
set version to 0.9.0-alpha

11 years agoallow specifying where to create the phar archive
scribu [Wed, 13 Feb 2013 00:07:32 +0000 (02:07 +0200)]
allow specifying where to create the phar archive

11 years agoadd templates to phar archive
scribu [Tue, 12 Feb 2013 23:57:58 +0000 (01:57 +0200)]
add templates to phar archive

11 years agomake manpages work from a Phar archive
scribu [Tue, 12 Feb 2013 23:33:50 +0000 (01:33 +0200)]
make manpages work from a Phar archive

11 years agoadd shebang to Phar stub
scribu [Tue, 12 Feb 2013 23:32:18 +0000 (01:32 +0200)]
add shebang to Phar stub

11 years agouse DirectoryIterator, since glob() doesn't work on Phar archives
scribu [Tue, 12 Feb 2013 22:43:56 +0000 (00:43 +0200)]
use DirectoryIterator, since glob() doesn't work on Phar archives

11 years agohandle --quiet parameter
scribu [Tue, 12 Feb 2013 22:26:14 +0000 (00:26 +0200)]
handle --quiet parameter

11 years agoadd ignored paths
scribu [Tue, 12 Feb 2013 22:20:53 +0000 (00:20 +0200)]
add ignored paths

11 years agofirst pass at creating a Phar archive
scribu [Tue, 12 Feb 2013 22:07:53 +0000 (00:07 +0200)]
first pass at creating a Phar archive

11 years agoshow validation warnings only when generating man pages. see #298
scribu [Tue, 12 Feb 2013 02:27:01 +0000 (04:27 +0200)]
show validation warnings only when generating man pages. see #298

11 years agoMerge pull request #298 from wp-cli/synopsis-lint
Cristi Burcă [Tue, 12 Feb 2013 02:19:34 +0000 (18:19 -0800)]
Merge pull request #298 from wp-cli/synopsis-lint

Synopsis linting

11 years agofix post generate and user generate synopses
scribu [Tue, 12 Feb 2013 02:17:01 +0000 (04:17 +0200)]
fix post generate and user generate synopses

closes #296

11 years agothe 'repeating' flavour can also be optional
scribu [Tue, 12 Feb 2013 01:59:19 +0000 (03:59 +0200)]
the 'repeating' flavour can also be optional

11 years agoadd 'repeating' flavour
scribu [Tue, 12 Feb 2013 01:40:20 +0000 (03:40 +0200)]
add 'repeating' flavour

11 years agofirst pass at moving arg checking into SynopsisParser
scribu [Tue, 12 Feb 2013 00:41:06 +0000 (02:41 +0200)]
first pass at moving arg checking into SynopsisParser

Also, doesn't nest accepted parameters by type

11 years agorefactor pattern generation
scribu [Mon, 11 Feb 2013 22:12:57 +0000 (00:12 +0200)]
refactor pattern generation

11 years agoignore empty synopsis tokens
scribu [Mon, 11 Feb 2013 21:24:34 +0000 (23:24 +0200)]
ignore empty synopsis tokens

11 years agoshow warnings for invalid tokens when generating man pages
scribu [Mon, 11 Feb 2013 21:14:28 +0000 (23:14 +0200)]
show warnings for invalid tokens when generating man pages

11 years agomake synopsis parser return unknown tokens
scribu [Mon, 11 Feb 2013 20:17:43 +0000 (22:17 +0200)]
make synopsis parser return unknown tokens

11 years agoMerge pull request #297 from wp-cli/synopsis-tests
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

11 years agouse assertCount() instead of assertEquals()
scribu [Mon, 11 Feb 2013 19:53:28 +0000 (21:53 +0200)]
use assertCount() instead of assertEquals()

11 years agoadd test for combined param types
scribu [Mon, 11 Feb 2013 19:51:12 +0000 (21:51 +0200)]
add test for combined param types

11 years agocheck that other parameter types are 0
scribu [Mon, 11 Feb 2013 19:41:05 +0000 (21:41 +0200)]
check that other parameter types are 0

11 years agoadd tests for SynopsisParser
scribu [Mon, 11 Feb 2013 17:14:07 +0000 (19:14 +0200)]
add tests for SynopsisParser

11 years agointroduce SynopsisParser class
scribu [Mon, 11 Feb 2013 18:53:55 +0000 (20:53 +0200)]
introduce SynopsisParser class

11 years agomake cmd runner return command string, for easy debugging
scribu [Mon, 11 Feb 2013 18:10:31 +0000 (20:10 +0200)]
make cmd runner return command string, for easy debugging

11 years agoadd --force flag to wp core download. fixes #221
scribu [Sun, 10 Feb 2013 16:31:33 +0000 (18:31 +0200)]
add --force flag to wp core download. fixes #221

11 years agoUse `cp -r` instead of `mv` for moving WP files into the current dir
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

11 years agoMerge pull request #295 from ocean90/fix-no-wp-install-error
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

11 years agoFix 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

11 years agoAccept a parent when creating a new term
Daniel Bachhuber [Mon, 4 Feb 2013 02:40:19 +0000 (18:40 -0800)]
Accept a parent when creating a new term

11 years agoMan pages
Daniel Bachhuber [Mon, 4 Feb 2013 00:34:57 +0000 (16:34 -0800)]
Man pages

11 years agoAbstract output of data to a format_items() utility function
Daniel Bachhuber [Sun, 3 Feb 2013 23:31:14 +0000 (15:31 -0800)]
Abstract output of data to a format_items() utility function

11 years agoA term command with subcommands for creating, updating, deleting and listing taxonomy...
Daniel Bachhuber [Sun, 3 Feb 2013 23:00:30 +0000 (15:00 -0800)]
A term command with subcommands for creating, updating, deleting and listing taxonomy terms

11 years agoMerge pull request #291 from wp-cli/fix-291
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

11 years agofix WP_CLI::error() not exiting
scribu [Fri, 8 Feb 2013 02:14:44 +0000 (04:14 +0200)]
fix WP_CLI::error() not exiting

11 years agotests: separate stdout from stderr
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.

11 years agoadd our own wp_die() handler
scribu [Fri, 8 Feb 2013 00:28:07 +0000 (02:28 +0200)]
add our own wp_die() handler

11 years agomake 'wp install' imply 'empty dir'
scribu [Thu, 7 Feb 2013 22:21:55 +0000 (00:21 +0200)]
make 'wp install' imply 'empty dir'

11 years agoadd test case
scribu [Thu, 7 Feb 2013 22:19:34 +0000 (00:19 +0200)]
add test case

11 years agomove /templates/ out of /php/ since it doesn't contain PHP files
scribu [Thu, 7 Feb 2013 01:14:50 +0000 (03:14 +0200)]
move /templates/ out of /php/ since it doesn't contain PHP files

11 years agoregenerate some manpages
scribu [Wed, 6 Feb 2013 18:08:38 +0000 (20:08 +0200)]
regenerate some manpages

11 years agogenerate manpage for scaffold _s. see #285
scribu [Wed, 6 Feb 2013 18:04:00 +0000 (20:04 +0200)]
generate manpage for scaffold _s. see #285

11 years agoMerge pull request #285 from drrobotnik/master
Cristi Burcă [Wed, 6 Feb 2013 18:01:46 +0000 (10:01 -0800)]
Merge pull request #285 from drrobotnik/master

Added wp scaffold _s

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 agoMerge pull request #289 from jmslbam/master
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

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

11 years agoChanged filename from machinename to slug
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.

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 agoMerge pull request #284 from wp-cli/user-list-csv
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

11 years agoReverse parameter order in output_csv() 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.

11 years agoadd some examples for user list and regenerate manpage
scribu [Sun, 3 Feb 2013 20:31:50 +0000 (22:31 +0200)]
add some examples for user list and regenerate manpage

11 years agoUse fputcsv with STDOUT instead of building our own CSV. Props @scribu
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

11 years agoUse the row we built to make sure we're only presenting data that correlates to headers
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

11 years agoMention default output
Daniel Bachhuber [Sun, 3 Feb 2013 18:51:15 +0000 (10:51 -0800)]
Mention default output

11 years agoUpdate man doc
Daniel Bachhuber [Sun, 3 Feb 2013 18:25:17 +0000 (10:25 -0800)]
Update man doc

11 years agoSimplify the code to generate CSV and JSON output by typecasting. Feels a little...
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.

11 years agoIf only --ids are requested, we don't need to do anything else
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

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 agoOutput a list of users as CSV or JSON with a new CSV helper utility
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

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