free-chevereto/app/bin/repl
2022-11-30 12:33:23 +00:00

26 lines
530 B
PHP
Executable file

#!/usr/bin/env php
<?php
/*
* This file is part of Chevereto.
*
* (c) Rodolfo Berrios <rodolfo@chevereto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Psy\Configuration;
use Psy\Shell;
require __DIR__ . '/../vendor/autoload.php';
try {
(new Shell(
new Configuration(
require __DIR__ . '/../.psysh.php'
)
))->run();
} catch (Throwable $e) {
fwrite(STDERR, $e->getMessage() . PHP_EOL);
}