OSDN Git Service

walk up directory tree to find config file
authorWeston Ruter <westonruter@gmail.com>
Fri, 22 Mar 2013 00:12:00 +0000 (17:12 -0700)
committerWeston Ruter <westonruter@gmail.com>
Fri, 22 Mar 2013 00:12:00 +0000 (17:12 -0700)
commit46e97a5dfc1d2bc1e66332b7875f32f5057e973a
tree133a5fdb7f53dbbc834fd27e88a2c3ed6f2039d8
parent4a5f0c9d783eda0acb2c570065982b7231b05a9b
walk up directory tree to find config file

Allows WP-CLI to be invoked from anywhere within a project.
You are not limited to being in the directory where the wp-cli*.yml file is.
The DOCUMENT_ROOT is then set to the supplied path relative to the config file.
php/WP_CLI/Runner.php