OSDN Git Service

wvm/wvm.git
11 years agointroduce get_root_command() getter
scribu [Sun, 30 Jun 2013 21:19:55 +0000 (23:19 +0200)]
introduce get_root_command() getter

11 years agoinstantiate WP_CLI::$root on-demand
scribu [Sun, 30 Jun 2013 21:14:33 +0000 (23:14 +0200)]
instantiate WP_CLI::$root on-demand

11 years agomake WP_CLI::add_command() work when called from a Composer package's autoloaded...
scribu [Sun, 30 Jun 2013 20:53:41 +0000 (22:53 +0200)]
make WP_CLI::add_command() work when called from a Composer package's autoloaded file

11 years agoensure CRLF are always normalized to LF in the git database
scribu [Wed, 26 Jun 2013 15:53:20 +0000 (18:53 +0300)]
ensure CRLF are always normalized to LF in the git database

11 years agolock php-cli-tools version to 0.9.3
scribu [Wed, 26 Jun 2013 09:27:09 +0000 (12:27 +0300)]
lock php-cli-tools version to 0.9.3

fixes #560; see #561

11 years agoMerge pull request #299 from wp-cli/import
Cristi Burcă [Tue, 25 Jun 2013 22:42:27 +0000 (15:42 -0700)]
Merge pull request #299 from wp-cli/import

Import Command

11 years agofix indentation in import.feature
scribu [Tue, 25 Jun 2013 22:26:13 +0000 (01:26 +0300)]
fix indentation in import.feature

[ci skip]

11 years agoadd newline at end of man-src/import.txt
scribu [Tue, 25 Jun 2013 22:24:26 +0000 (01:24 +0300)]
add newline at end of man-src/import.txt

[ci skip]

11 years agominor whitespace fixes
scribu [Tue, 25 Jun 2013 22:16:44 +0000 (01:16 +0300)]
minor whitespace fixes

11 years agoHave the success message appear on its own line
Daniel Bachhuber [Tue, 25 Jun 2013 21:25:20 +0000 (14:25 -0700)]
Have the success message appear on its own line

https://github.com/wp-cli/wp-cli/pull/299#issuecomment-20008252

11 years agoMerge pull request #557 from wp-cli/fix-completions
Cristi Burcă [Tue, 25 Jun 2013 21:03:07 +0000 (14:03 -0700)]
Merge pull request #557 from wp-cli/fix-completions

Completions are broken

11 years agoUpdate docs
Daniel Bachhuber [Mon, 24 Jun 2013 18:04:31 +0000 (11:04 -0700)]
Update docs

11 years agoBasic feature test for import command
Daniel Bachhuber [Mon, 24 Jun 2013 17:50:47 +0000 (10:50 -0700)]
Basic feature test for import command

11 years agoAllow a subset of STDOUT and STDERR to be used with a syntax like: `'Writing to file...
Daniel Bachhuber [Mon, 24 Jun 2013 17:48:58 +0000 (10:48 -0700)]
Allow a subset of STDOUT and STDERR to be used with a syntax like: `'Writing to file %s'`

11 years agoIncorporate @mjangda's helpful verbosity filters
Daniel Bachhuber [Mon, 24 Jun 2013 12:41:30 +0000 (12:41 +0000)]
Incorporate @mjangda's helpful verbosity filters

11 years agoMake the `--authors` argument required. It's a very necessary step, even if just...
Daniel Bachhuber [Thu, 25 Apr 2013 17:29:34 +0000 (17:29 +0000)]
Make the `--authors` argument required. It's a very necessary step, even if just to have the user confirm they're skipping mappings.

11 years agoRefactor author mapping code so it can be used with other importers
Daniel Bachhuber [Sun, 21 Apr 2013 19:29:45 +0000 (12:29 -0700)]
Refactor author mapping code so it can be used with other importers

11 years agoIncorporate author mapping support into the WordPress importer.
Daniel Bachhuber [Sun, 21 Apr 2013 18:20:02 +0000 (11:20 -0700)]
Incorporate author mapping support into the WordPress importer.

* If a .csv filename is specified, it will look for an author mapping file.
* If the .csv author mapping file doesn't exist, it will create one for you and wait for you to edit.
* `--authors=create` will create any missing users, and expect that either user_email or user_logins map up directly.
* `--authors=skip` will ignore any byline mapping.

11 years agoFirst pass at a refactor to make `wp import` more abstracted, and potentially support...
Daniel Bachhuber [Sun, 21 Apr 2013 16:04:52 +0000 (09:04 -0700)]
First pass at a refactor to make `wp import` more abstracted, and potentially support multiple importers.

11 years agoAlso define `WP_IMPORTING`, as this constant can be used to determine whether a numbe...
Daniel Bachhuber [Sun, 21 Apr 2013 15:19:16 +0000 (08:19 -0700)]
Also define `WP_IMPORTING`, as this constant can be used to determine whether a number of supplemental actions are run (or not)

11 years agoA wee bit of work on an import command
Daniel Bachhuber [Tue, 12 Feb 2013 01:07:21 +0000 (14:07 +1300)]
A wee bit of work on an import command

11 years agomove completions flag to 'cli' command
scribu [Tue, 25 Jun 2013 20:45:52 +0000 (23:45 +0300)]
move completions flag to 'cli' command

11 years agoadd test for --completions flag
scribu [Tue, 25 Jun 2013 20:45:05 +0000 (23:45 +0300)]
add test for --completions flag

11 years agoMerge pull request #556 from wp-cli/custom-port
Cristi Burcă [Tue, 25 Jun 2013 20:31:48 +0000 (13:31 -0700)]
Merge pull request #556 from wp-cli/custom-port

`wp core install` ignores custom port

11 years agobehat: set custom port only in that specific test, since multisite installs don't...
scribu [Tue, 25 Jun 2013 20:18:28 +0000 (23:18 +0300)]
behat: set custom port only in that specific test, since multisite installs don't like it

11 years agodon't set $_SERVER['REQUEST_URL']
scribu [Tue, 25 Jun 2013 19:56:16 +0000 (22:56 +0300)]
don't set $_SERVER['REQUEST_URL']

not used by WordPress and probably bogus

11 years agoappend port to $_SERVER['HTTP_HOST']
scribu [Tue, 25 Jun 2013 19:55:53 +0000 (22:55 +0300)]
append port to $_SERVER['HTTP_HOST']

11 years agobehat: install WP with custom URL
scribu [Tue, 25 Jun 2013 19:55:22 +0000 (22:55 +0300)]
behat: install WP with custom URL

11 years agobehat: remove duplicate check in core.feature
scribu [Tue, 25 Jun 2013 19:10:13 +0000 (22:10 +0300)]
behat: remove duplicate check in core.feature

11 years agoset $_SERVER['SERVER_PORT']
scribu [Tue, 25 Jun 2013 18:52:39 +0000 (21:52 +0300)]
set $_SERVER['SERVER_PORT']

11 years agobehat: add test for --url global parameter
scribu [Tue, 25 Jun 2013 18:51:28 +0000 (21:51 +0300)]
behat: add test for --url global parameter

11 years agoharmonize command descriptions
scribu [Tue, 25 Jun 2013 12:34:18 +0000 (15:34 +0300)]
harmonize command descriptions

11 years agoMerge pull request #539 from wp-cli/absolutize-require
Cristi Burcă [Tue, 25 Jun 2013 10:58:39 +0000 (03:58 -0700)]
Merge pull request #539 from wp-cli/absolutize-require

Absolutize 'require:' paths read from wp-cli.yml

11 years agoabsolutize 'require:'
scribu [Tue, 25 Jun 2013 10:38:54 +0000 (13:38 +0300)]
absolutize 'require:'

11 years agomove 'path:' absolutization logic to Configurator
scribu [Tue, 25 Jun 2013 10:21:28 +0000 (13:21 +0300)]
move 'path:' absolutization logic to Configurator

11 years agobehat: add test for relative 'require:' path in wp-cli.yml
scribu [Tue, 25 Jun 2013 10:20:44 +0000 (13:20 +0300)]
behat: add test for relative 'require:' path in wp-cli.yml

11 years agoshow warning if --url doesn't receive a value
scribu [Mon, 24 Jun 2013 11:26:38 +0000 (14:26 +0300)]
show warning if --url doesn't receive a value

11 years agodon't mention deprecated --blog option in synopsis
scribu [Mon, 24 Jun 2013 11:25:22 +0000 (14:25 +0300)]
don't mention deprecated --blog option in synopsis

11 years agos/blog-wide/site-wide/g
scribu [Mon, 24 Jun 2013 11:24:03 +0000 (14:24 +0300)]
s/blog-wide/site-wide/g

11 years agoMerge pull request #553 from wp-cli/fix-553
Cristi Burcă [Tue, 25 Jun 2013 08:39:16 +0000 (01:39 -0700)]
Merge pull request #553 from wp-cli/fix-553

Fix Behat tests

11 years agobehat: don't check DB error message, since it's sometimes encoded and sometimes not.
scribu [Tue, 25 Jun 2013 08:30:01 +0000 (11:30 +0300)]
behat: don't check DB error message, since it's sometimes encoded and sometimes not.

11 years agobehat: always invoke `wp` with a command
scribu [Tue, 25 Jun 2013 08:20:20 +0000 (11:20 +0300)]
behat: always invoke `wp` with a command

11 years agobehat: use `@when` flag for testing --require
scribu [Mon, 24 Jun 2013 16:40:22 +0000 (19:40 +0300)]
behat: use `@when` flag for testing --require

see #453

11 years agoMerge pull request #548 from wp-cli/inline-help
scribu [Mon, 24 Jun 2013 15:23:50 +0000 (18:23 +0300)]
Merge pull request #548 from wp-cli/inline-help

11 years agoremove man/ dir
scribu [Mon, 24 Jun 2013 14:12:55 +0000 (17:12 +0300)]
remove man/ dir

11 years agoMerge pull request #536 from wp-cli/before_invoke
Cristi Burcă [Mon, 24 Jun 2013 14:10:08 +0000 (07:10 -0700)]
Merge pull request #536 from wp-cli/before_invoke

Add optional 'before_invoke' parameter to WP_CLI::add_command()

11 years agoignore first parameter to WP_CLI::add_man_dir()
scribu [Mon, 24 Jun 2013 13:50:54 +0000 (16:50 +0300)]
ignore first parameter to WP_CLI::add_man_dir()

11 years agorename '_sys' to 'cli'
scribu [Mon, 24 Jun 2013 13:40:27 +0000 (16:40 +0300)]
rename '_sys' to 'cli'

11 years agoMake `wp` show the same output as `wp help`.
scribu [Mon, 24 Jun 2013 13:20:34 +0000 (16:20 +0300)]
Make `wp` show the same output as `wp help`.

11 years agofix indentation for options
scribu [Mon, 24 Jun 2013 12:23:42 +0000 (15:23 +0300)]
fix indentation for options

11 years agomore cleanup of option listing
scribu [Mon, 24 Jun 2013 12:00:25 +0000 (15:00 +0300)]
more cleanup of option listing

11 years agoMerge pull request #550 from wp-cli/empty-clarity
Cristi Burcă [Mon, 24 Jun 2013 11:28:30 +0000 (04:28 -0700)]
Merge pull request #550 from wp-cli/empty-clarity

Docs improvements for `wp site empty`

11 years agoDrop the example entirely. Basic usage is covered in the synopsis
Daniel Bachhuber [Mon, 24 Jun 2013 11:16:58 +0000 (11:16 +0000)]
Drop the example entirely. Basic usage is covered in the synopsis

11 years agoFix reference to command
Daniel Bachhuber [Mon, 24 Jun 2013 11:07:04 +0000 (11:07 +0000)]
Fix reference to command

11 years agoManual for the `--yes` prompt
Daniel Bachhuber [Mon, 24 Jun 2013 11:06:09 +0000 (11:06 +0000)]
Manual for the `--yes` prompt

11 years agoClarity the `site empty` command doesn't do anything to the options table or users.
Daniel Bachhuber [Mon, 24 Jun 2013 11:02:49 +0000 (11:02 +0000)]
Clarity the `site empty` command doesn't do anything to the options table or users.

11 years agopartial cleanup of option listing
scribu [Sun, 23 Jun 2013 11:39:51 +0000 (14:39 +0300)]
partial cleanup of option listing

11 years agoprettify subcommand listing
scribu [Sun, 23 Jun 2013 11:10:25 +0000 (14:10 +0300)]
prettify subcommand listing

11 years agomake help headings bright
scribu [Sun, 23 Jun 2013 10:53:53 +0000 (13:53 +0300)]
make help headings bright

11 years agooutput help markdown directly, instead of going through man
scribu [Sat, 22 Jun 2013 20:31:14 +0000 (23:31 +0300)]
output help markdown directly, instead of going through man

11 years agoignore composer.lock
scribu [Sun, 23 Jun 2013 11:45:44 +0000 (14:45 +0300)]
ignore composer.lock

Facts:

1. When WP-CLI isn't installed as the root package, composer.lock is
ignored.

2. The wp-cli.org installer doesn't install WP-CLI as the root package,
but as a dependency.

1. + 2. => Having composer.lock under version control gives a false
sense of security. Instead, we should take more care with how we define
dependencies in composer.json

11 years agoupdate Composer dependencies
scribu [Sun, 23 Jun 2013 11:44:11 +0000 (14:44 +0300)]
update Composer dependencies

11 years agoremove empty line
scribu [Sun, 23 Jun 2013 09:46:34 +0000 (12:46 +0300)]
remove empty line

11 years agomisc man fixes
scribu [Sat, 22 Jun 2013 19:28:49 +0000 (22:28 +0300)]
misc man fixes

[ci skip]

11 years agovarious man page updates
scribu [Sat, 22 Jun 2013 18:53:13 +0000 (21:53 +0300)]
various man page updates

11 years agofix synopsis for `wp media import`
scribu [Sat, 22 Jun 2013 18:52:52 +0000 (21:52 +0300)]
fix synopsis for `wp media import`

11 years agofix man page for `wp core is-installed`
scribu [Sat, 22 Jun 2013 18:08:28 +0000 (21:08 +0300)]
fix man page for `wp core is-installed`

11 years agocolorize plugin/theme status legend. see #517
scribu [Fri, 21 Jun 2013 23:24:31 +0000 (02:24 +0300)]
colorize plugin/theme status legend. see #517

11 years agoMerge pull request #537 from wp-cli/cli-root
Cristi Burcă [Fri, 21 Jun 2013 10:12:10 +0000 (03:12 -0700)]
Merge pull request #537 from wp-cli/cli-root

Fix WP_CLI_ROOT

11 years agodefine WP_CLI_ROOT to be the root directory, with no trailing slash
scribu [Fri, 21 Jun 2013 09:34:38 +0000 (12:34 +0300)]
define WP_CLI_ROOT to be the root directory, with no trailing slash

11 years agoMerge pull request #439 from wp-cli/phar-away
Cristi Burcă [Fri, 21 Jun 2013 09:49:43 +0000 (02:49 -0700)]
Merge pull request #439 from wp-cli/phar-away

Remove support for Phar archives

11 years agoremove support for Phar archive
scribu [Wed, 8 May 2013 21:08:37 +0000 (00:08 +0300)]
remove support for Phar archive

11 years ago--info: make WP-CLI root be the root folder, not php/
scribu [Thu, 20 Jun 2013 21:22:49 +0000 (00:22 +0300)]
--info: make WP-CLI root be the root folder, not php/

11 years agobehat: add test for `post create` reading content from STDIN
scribu [Thu, 20 Jun 2013 19:44:34 +0000 (22:44 +0300)]
behat: add test for `post create` reading content from STDIN

11 years agopost create: balance brackets
scribu [Thu, 20 Jun 2013 19:38:06 +0000 (22:38 +0300)]
post create: balance brackets

11 years agooption update: show success message even if the value has not changed
scribu [Thu, 20 Jun 2013 18:30:07 +0000 (21:30 +0300)]
option update: show success message even if the value has not changed

see #531

11 years agoMerge pull request #534 from wp-cli/search-replace-tables
Cristi Burcă [Thu, 20 Jun 2013 16:18:29 +0000 (09:18 -0700)]
Merge pull request #534 from wp-cli/search-replace-tables

search-replace: query tables instead of relying on what's in wpdb

11 years agosearch-replace: always do a SHOW TABLES query
scribu [Thu, 20 Jun 2013 16:04:20 +0000 (19:04 +0300)]
search-replace: always do a SHOW TABLES query

11 years agocore install-network: flags don't need a value; update man page
scribu [Thu, 20 Jun 2013 09:44:28 +0000 (12:44 +0300)]
core install-network: flags don't need a value; update man page

see #532

11 years agoMerge pull request #532 from MiteshShah/patch-1
Cristi Burcă [Thu, 20 Jun 2013 09:42:23 +0000 (02:42 -0700)]
Merge pull request #532 from MiteshShah/patch-1

Support Subdomains

11 years agoSupport Subdomains
Mitesh Shah [Thu, 20 Jun 2013 09:35:30 +0000 (15:05 +0530)]
Support Subdomains

11 years agoadd optional 'before_invoke' parameter to WP_CLI::add_command()
scribu [Thu, 20 Jun 2013 01:27:56 +0000 (04:27 +0300)]
add optional 'before_invoke' parameter to WP_CLI::add_command()

this avoids repeating the command name and makes it clearer when the
callback is fired

11 years agoMerge pull request #453 from wp-cli/doctag-when
Cristi Burcă [Wed, 19 Jun 2013 17:57:47 +0000 (10:57 -0700)]
Merge pull request #453 from wp-cli/doctag-when

Command phpdoc or other flag to allow third-party commands to run before WordPress is present

11 years agoshow error on invalid json. closes #531
scribu [Wed, 19 Jun 2013 17:47:33 +0000 (20:47 +0300)]
show error on invalid json. closes #531

11 years agofix network-meta man page. see #529
scribu [Mon, 17 Jun 2013 22:28:56 +0000 (01:28 +0300)]
fix network-meta man page. see #529

11 years agocalculate path for early commands only once
scribu [Mon, 17 Jun 2013 02:04:38 +0000 (05:04 +0300)]
calculate path for early commands only once

11 years agoimplement '@when' docblock tag
scribu [Mon, 17 Jun 2013 01:21:58 +0000 (04:21 +0300)]
implement '@when' docblock tag

Works on both commands and subcommands.

11 years agomove setting $_SERVER['DOCUMENT_ROOT'] to set_wp_root() method
scribu [Mon, 17 Jun 2013 01:37:53 +0000 (04:37 +0300)]
move setting $_SERVER['DOCUMENT_ROOT'] to set_wp_root() method

It was first defined in 390e7dbbabee7398527c3a1552e849f5c87053aa and
then sort of drifted away from where paths are handled.

11 years agomove command instance creation to a separate class
scribu [Mon, 17 Jun 2013 00:17:02 +0000 (03:17 +0300)]
move command instance creation to a separate class

Keep the disabled_commands logic inside the WP_CLI class; show an
explicit error, instead of pretending the command doesn't exist.

11 years agoMerge pull request #471 from wp-cli/psr-3
Cristi Burcă [Sun, 16 Jun 2013 17:36:35 +0000 (10:36 -0700)]
Merge pull request #471 from wp-cli/psr-3

Switch from WP_CLI::line() to WP_CLI::log() where appropriate

11 years agoremove redundant arg check in Theme_Command::parse_name()
scribu [Sun, 16 Jun 2013 17:28:29 +0000 (20:28 +0300)]
remove redundant arg check in Theme_Command::parse_name()

it's already handled by the synopsis parser

11 years agoconvert from WP_CLI::line() to WP_CLI::log() where appropriate
scribu [Sun, 16 Jun 2013 17:22:00 +0000 (20:22 +0300)]
convert from WP_CLI::line() to WP_CLI::log() where appropriate

11 years agointroduce WP_CLI::log()
scribu [Sun, 16 Jun 2013 16:54:42 +0000 (19:54 +0300)]
introduce WP_CLI::log()

WP_CLI::line() is for spitting something to STDOUT.

WP_CLI::log() is for sending a message to the logger, which could do
various things with it.

closes #465

11 years agohelp: move duplicated function_exists() check to __invoke()
scribu [Sat, 15 Jun 2013 15:50:14 +0000 (18:50 +0300)]
help: move duplicated function_exists() check to __invoke()

11 years agorename _hook() to _action()
scribu [Sat, 15 Jun 2013 15:26:09 +0000 (18:26 +0300)]
rename _hook() to _action()

11 years agobehat: try running the install-network command again
scribu [Sun, 9 Jun 2013 15:36:15 +0000 (18:36 +0300)]
behat: try running the install-network command again

11 years agoA basic test for converting an install to multisite.
Daniel Bachhuber [Sat, 8 Jun 2013 22:19:13 +0000 (15:19 -0700)]
A basic test for converting an install to multisite.

11 years agoMerge pull request #523 from wp-cli/blog-site-network
Cristi Burcă [Sat, 15 Jun 2013 11:31:13 +0000 (04:31 -0700)]
Merge pull request #523 from wp-cli/blog-site-network

Rename `blog` to `site` and `site-meta` to `network`

11 years agosite create: alias --site_id= to --network_id=
scribu [Sat, 15 Jun 2013 11:24:06 +0000 (14:24 +0300)]
site create: alias --site_id= to --network_id=

11 years agosite create: rename --site_id= to --network_id=
scribu [Sat, 15 Jun 2013 11:11:43 +0000 (14:11 +0300)]
site create: rename --site_id= to --network_id=