1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-08-25 04:40:17 +02:00
Magallanes/Mage/Command/BuiltIn/VersionCommand.php

40 lines
982 B
PHP
Raw Normal View History

<?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mage\Command\BuiltIn;
use Mage\Command\AbstractCommand;
use Mage\Console;
/**
* Command for displaying the Version of Magallanes
*
* @author Andrés Montañez <andres@andresmontanez.com>
*/
class VersionCommand extends AbstractCommand
{
public function __construct()
{
$this->setName('Version command')
->setHelpMessage('Displays the current version of Magallanes')
->setSyntaxMessage('mage version');
}
2014-08-06 19:01:39 +02:00
/**
* Display the Magallanes Version
* @see \Mage\Command\AbstractCommand::run()
*/
public function run()
{
2014-11-01 22:31:04 +01:00
Console::output('Running <blue>Magallanes</blue> version <bold>' . MAGALLANES_VERSION . '</bold>', 0, 2);
2014-08-07 02:43:29 +02:00
return 0;
}
}