trying to add version to app

bump php and composer version in docker image
This commit is contained in:
2023-12-26 10:55:35 +07:00
parent 3433be1e79
commit 91b50b08e2
3 changed files with 12 additions and 3 deletions

7
merger
View File

@@ -27,7 +27,12 @@ if (isset($GLOBALS['_composer_autoload_path'])) {
unset($knownAutoloadPaths, $path);
}
$app = new \Ahc\Cli\Application('clover-merger', '0.1.0');
$appVersion = \getenv('MERGER_VERSION');
if ($appVersion === false) {
$appVersion = 'dev';
}
$app = new \Ahc\Cli\Application('clover-merger', $appVersion);
$app->onException(static function (\Throwable $exception, int $exitCode) use ($app): void {
$io = $app->io();