OSDN Git Service

add Boris as a dependency and use it instead of homegrown REPL
authorscribu <mail@scribu.net>
Wed, 8 May 2013 11:17:39 +0000 (14:17 +0300)
committerscribu <mail@scribu.net>
Wed, 8 May 2013 11:17:39 +0000 (14:17 +0300)
composer.json
composer.lock
php/commands/shell.php

index 46ed157..5817208 100644 (file)
@@ -10,7 +10,8 @@
        "require": {
                "php": ">=5.3",
                "wp-cli/php-cli-tools": "dev-master",
-               "mustache/mustache": "2.0.x"
+               "mustache/mustache": "2.0.x",
+               "d11wtq/boris": "dev-master"
        },
        "require-dev": {
                "phpunit/phpunit": "3.7.x",
index 9bd1adf..e804126 100644 (file)
@@ -3,9 +3,41 @@
         "This file locks the dependencies of your project to a known state",
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
     ],
-    "hash": "f2b06fd19e26795775358b054c6fb09d",
+    "hash": "1d1cf2cc2d559d96f2e3397353a4be3e",
     "packages": [
         {
+            "name": "d11wtq/boris",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/d11wtq/boris.git",
+                "reference": "09c211ab3a79154f39efce542f737ad08596e63f"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/d11wtq/boris/zipball/09c211ab3a79154f39efce542f737ad08596e63f",
+                "reference": "09c211ab3a79154f39efce542f737ad08596e63f",
+                "shasum": ""
+            },
+            "require": {
+                "ext-pcntl": "*",
+                "ext-posix": "*",
+                "ext-readline": "*",
+                "php": ">=5.3.0"
+            },
+            "bin": [
+                "bin/boris"
+            ],
+            "type": "library",
+            "autoload": {
+                "psr-0": {
+                    "Boris": "lib"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "time": "2013-04-23 13:31:51"
+        },
+        {
             "name": "mustache/mustache",
             "version": "v2.0.2",
             "source": {
     "minimum-stability": "stable",
     "stability-flags": {
         "wp-cli/php-cli-tools": 20,
+        "d11wtq/boris": 20,
         "behat/behat": 0
     },
     "platform": {
index 2bc41fd..077e22e 100644 (file)
@@ -8,7 +8,7 @@ class Shell_Command extends \WP_CLI_Command {
        public function __invoke() {
                \WP_CLI::line( 'Type "exit" to close session.' );
 
-               $repl = new \WP_CLI\REPL( 'wp> ' );
+               $repl = new \Boris\Boris( 'wp> ' );
                $repl->start();
        }
 }