diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-11-16 13:15:22 -0800 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-11-16 13:52:01 -0800 |
commit | 6f55acf1a6eb58c7eeed3233e70782d031814201 (patch) | |
tree | 49a2cef2913053979945a878dcec20516bf1ff72 /app/Console | |
parent | 9f3486f7481ea5f7ecd9de724549c168072dd046 (diff) |
Add command to display Kanboard version
Diffstat (limited to 'app/Console')
-rw-r--r-- | app/Console/VersionCommand.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/Console/VersionCommand.php b/app/Console/VersionCommand.php new file mode 100644 index 00000000..678cc2ee --- /dev/null +++ b/app/Console/VersionCommand.php @@ -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); + } +} |