php-shell/examples/basic.php

13 lines
223 B
PHP
Raw Permalink Normal View History

2016-11-15 02:29:00 +00:00
<?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();