]> git.andy128k.dev Git - ipf.git/commitdiff
interactive shell
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 16 Aug 2014 07:28:16 +0000 (10:28 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 16 Aug 2014 08:08:39 +0000 (11:08 +0300)
composer.json
composer.lock
ipf/cli.php
ipf/command/shell.php [new file with mode: 0644]

index 3a7dd33fb122d9c44c834d53b2a129c055f22ad2..745775a0e178f44c57e35b8fc10fed905034355d 100644 (file)
@@ -19,6 +19,7 @@
     "pear/archive_tar": "1.3.*",
     "mustangostang/spyc": "0.5.*",
     "lichtner/fluentpdo": "dev-master",
+    "d11wtq/boris": "dev-master",
     "andy128k/missing-tools": "0.2.*@dev",
     "andy128k/migrations": "dev-master",
     "andy128k/pegp": "0.1.*@dev",
index be8ca0d08b2bb83d3989f9c1b457f125183579d1..acf293f883b2d09eaf6ac6e46b68005279926655 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "7132f66df1bb9071ac21329f579f6132",
+    "hash": "6eb94f37627b8d82f8c6cefbc133e9f2",
     "packages": [
         {
             "name": "andy128k/ipf-template",
             "description": "Route expression",
             "time": "2013-08-02 19:17:54"
         },
+        {
+            "name": "d11wtq/boris",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/d11wtq/boris.git",
+                "reference": "2a0a3d3a5f34d317577f8dcd98f5f578ad85109a"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/d11wtq/boris/zipball/2a0a3d3a5f34d317577f8dcd98f5f578ad85109a",
+                "reference": "2a0a3d3a5f34d317577f8dcd98f5f578ad85109a",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.3.0"
+            },
+            "suggest": {
+                "ext-pcntl": "Optional Process Control extension depencency",
+                "ext-posix": "Optional POSIX extension",
+                "ext-readline": "Optional readline extension depencency"
+            },
+            "bin": [
+                "bin/boris"
+            ],
+            "type": "library",
+            "autoload": {
+                "psr-0": {
+                    "Boris": "lib"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "time": "2014-07-31 12:15:24"
+        },
         {
             "name": "lichtner/fluentpdo",
             "version": "dev-master",
     "minimum-stability": "stable",
     "stability-flags": {
         "lichtner/fluentpdo": 20,
+        "d11wtq/boris": 20,
         "andy128k/missing-tools": 20,
         "andy128k/migrations": 20,
         "andy128k/pegp": 20,
index 1f52c1c9116edb215ddc34a08e514df7852215e6..3e9a0ce2c70a0a9d7ac0ee2a18e52e568a01ed34 100644 (file)
@@ -7,6 +7,7 @@ class IPF_Cli
     public function __construct()
     {
         $this->commands = array(
+            new IPF_Command_Shell,
             new IPF_Command_DebugServer,
             new IPF_Command_Routes,
             new IPF_Command_BuildModels,
diff --git a/ipf/command/shell.php b/ipf/command/shell.php
new file mode 100644 (file)
index 0000000..c922891
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+class IPF_Command_Shell
+{
+    public $command = 'shell';
+    public $description = 'Interactive shell';
+
+    public function run($args=null)
+    {
+        $boris = new \Boris\Boris('ipf> ');
+        $boris->start();
+    }
+}
+