Improved the context stack

This commit is contained in:
2016-11-15 03:29:00 +01:00
parent 482d8a54e5
commit 7bfd8453e7
3 changed files with 19 additions and 2 deletions

12
examples/basic.php Normal file
View File

@ -0,0 +1,12 @@
<?php
require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\Shell\Shell;
use NoccyLabs\Shell\Context;
$myShell = new Shell();
$myShell->setPrompt("test>");
$myShell->pushContext(new Context());
$myShell->run();