Basic command handler, bugfixes

This commit is contained in:
2024-02-27 02:22:49 +01:00
parent c92c40b45a
commit baff64be7a
4 changed files with 70 additions and 5 deletions

View File

@ -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) {