Add command to display Kanboard version

This commit is contained in:
Frederic Guillot
2017-11-16 13:15:22 -08:00
parent 9f3486f748
commit 6f55acf1a6
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Kanboard\Console;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class VersionCommand
*
* @package Kanboard\Console
* @author Frederic Guillot
*/
class VersionCommand extends BaseCommand
{
protected function configure()
{
$this
->setName('version')
->setDescription('Display Kanboard version')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln(APP_VERSION);
}
}