<commit_before><?php

declare(strict_types = 1);

namespace LotGD\Core\Console\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

use LotGD\Core\Console\Main;

class ConsoleCommand extends Command
{
    protected function configure()
    {
        $this->setName('console')
             ->setDescription('Start a shell to interact with the game.');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $g = Main::createGame();

        $boris = new \Boris\Boris('🐲> ');
        $boris->setLocal(array(
            'g' => $g
        ));
        $boris->start();
    }
}
<commit_msg>Add some help to the daenerys console command.<commit_after><?php

declare(strict_types = 1);

namespace LotGD\Core\Console\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

use LotGD\Core\Console\Main;

class ConsoleCommand extends Command
{
    protected function configure()
    {
        $this->setName('console')
             ->setDescription('Start a shell to interact with the game.');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $g = Main::createGame();

        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(
            'g' => $g
        ));
        $boris->start();
    }
}

{'fraction_non_alphanumeric': 0.13934426229508196, 'fraction_numerical': 0.0010245901639344263, 'mean_word_length': 2.906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3504651', 'n_tokens_mistral': 582, 'n_tokens_neox': 568, 'n_words': 139}