Basic command handler, bugfixes
This commit is contained in:
@ -2,11 +2,11 @@
|
||||
|
||||
use React\EventLoop\Loop;
|
||||
|
||||
require_once __DIR__."/vendor/autoload.php";
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
|
||||
$shell = new NoccyLabs\React\Shell\Shell();
|
||||
|
||||
$shell->on('prompt', function () use ($shell) {
|
||||
$shell->on('prompt', function ($shell) {
|
||||
$shell->setPrompt(date("H:i:s> "));
|
||||
});
|
||||
$shell->on('input', function (array $input) use ($shell) {
|
||||
|
Reference in New Issue
Block a user