summaryrefslogtreecommitdiff
path: root/app/Console/VersionCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Console/VersionCommand.php')
-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);
+ }
+}