From: Andrey Kutejko Date: Sat, 16 Aug 2014 07:28:16 +0000 (+0300) Subject: interactive shell X-Git-Tag: 0.6~197 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=92cfd31e739f0153cea14f4590fee38d58295a91;p=ipf.git interactive shell --- diff --git a/composer.json b/composer.json index 3a7dd33..745775a 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index be8ca0d..acf293f 100644 --- a/composer.lock +++ b/composer.lock @@ -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", @@ -164,6 +164,40 @@ "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", @@ -721,6 +755,7 @@ "minimum-stability": "stable", "stability-flags": { "lichtner/fluentpdo": 20, + "d11wtq/boris": 20, "andy128k/missing-tools": 20, "andy128k/migrations": 20, "andy128k/pegp": 20, diff --git a/ipf/cli.php b/ipf/cli.php index 1f52c1c..3e9a0ce 100644 --- a/ipf/cli.php +++ b/ipf/cli.php @@ -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 index 0000000..c922891 --- /dev/null +++ b/ipf/command/shell.php @@ -0,0 +1,14 @@ + '); + $boris->start(); + } +} +