N98\Magento\Application::outputMagerunCompatibilityNotice PHP Method

outputMagerunCompatibilityNotice() private method

Show a hint that this is Magento incompatible with Magerun and how to obtain the correct Magerun for it
private outputMagerunCompatibilityNotice ( string $version )
$version string of Magento, "1" or "2", that is incompatible
    private function outputMagerunCompatibilityNotice($version)
    {
        $file = $version === '2' ? $version : '';
        $magentoHint = <<<MAGENTOHINT
You are running a Magento {$version}.x instance. This version of n98-magerun is not compatible
with Magento {$version}.x. Please use n98-magerun{$version} (version {$version}) for this shop.

A current version of the software can be downloaded on github.

<info>Download with curl
------------------</info>

    <comment>curl -O https://files.magerun.net/n98-magerun{$file}.phar</comment>

<info>Download with wget
------------------</info>

    <comment>wget https://files.magerun.net/n98-magerun{$file}.phar</comment>

MAGENTOHINT;
        $output = new ConsoleOutput();
        /** @var $formatter FormatterHelper */
        $formatter = $this->getHelperSet()->get('formatter');
        $output->writeln(array('', $formatter->formatBlock('Compatibility Notice', 'bg=blue;fg=white', true), '', $magentoHint));
        throw new RuntimeException('This version of n98-magerun is not compatible with Magento ' . $version);
    }