From 20c8da511f8dca848dbeb8f142ea5e2dfc695e94 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 28 Apr 2020 13:53:57 +0300 Subject: [PATCH] command version --- .../Espo/Core/Console/Commands/Version.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 application/Espo/Core/Console/Commands/Version.php diff --git a/application/Espo/Core/Console/Commands/Version.php b/application/Espo/Core/Console/Commands/Version.php new file mode 100644 index 0000000000..54f81a1f53 --- /dev/null +++ b/application/Espo/Core/Console/Commands/Version.php @@ -0,0 +1,44 @@ +getContainer()->get('config')->get('version'); + + if (is_null($version)) { + return; + } + + echo $version . "\n"; + } +}