mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Initial v2 framework
* Remove vendor library * Update dependencies * Add initial commands (not yet updated for this project) * Move empir and linter into place * Add pakefile
This commit is contained in:
31
src/Resume/Command/VersionCommand.php
Normal file
31
src/Resume/Command/VersionCommand.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
namespace FogBugz\Command;
|
||||
|
||||
use FogBugz\Cli\AuthCommand;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class VersionCommand extends AuthCommand
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
->setName('version')
|
||||
->setDescription('Show version information')
|
||||
->requireAuth(false);
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$this->app = $this->getApplication();
|
||||
$output->writeln($this->app->project->version, $this->app->outputFormat);
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file VersionCommand.php */
|
||||
Reference in New Issue
Block a user