summaryrefslogtreecommitdiff
path: root/app/Console
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-11-16 13:15:22 -0800
committerFrederic Guillot <fred@kanboard.net>2017-11-16 13:52:01 -0800
commit6f55acf1a6eb58c7eeed3233e70782d031814201 (patch)
tree49a2cef2913053979945a878dcec20516bf1ff72 /app/Console
parent9f3486f7481ea5f7ecd9de724549c168072dd046 (diff)
Add command to display Kanboard version
Diffstat (limited to 'app/Console')
-rw-r--r--app/Console/VersionCommand.php28
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);
+ }
+}