Skip to content

Commit

Permalink
Add some help to the daenerys console command.
Browse files Browse the repository at this point in the history
  • Loading branch information
austenmc committed Jul 22, 2016
1 parent 6efd894 commit a673efa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Console/Command/ConsoleCommand.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
{ {
$g = Main::createGame(); $g = Main::createGame();


$boris = new \Boris\Boris('🐲> '); print("Daenerys console, the dragon prompt. lotgd/core " . \LotGD\Core\Game::getVersion() . ".\n");
print("Enter some PHP, but be careful, this is live and attached to your currently configured setup:\n\n");
print($g->getConfiguration());

print("\n");
print("Try things like `\$g::getVersion()`. To quit, ^D or `exit();`.\n");
print("\n");

$boris = new \Boris\Boris('🐲 > '); // For some reason we need the extra spaces.
$boris->setLocal(array( $boris->setLocal(array(
'g' => $g 'g' => $g
)); ));
Expand Down

0 comments on commit a673efa

Please sign in to comment.