From 6f55acf1a6eb58c7eeed3233e70782d031814201 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 16 Nov 2017 13:15:22 -0800 Subject: Add command to display Kanboard version --- app/Console/VersionCommand.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/Console/VersionCommand.php (limited to 'app/Console/VersionCommand.php') 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 @@ +setName('version') + ->setDescription('Display Kanboard version') + ; + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + $output->writeln(APP_VERSION); + } +} -- cgit v1.2.3