Add generator meta with the current version

This commit is contained in:
Pierre Rudloff 2020-06-21 15:30:39 +02:00
parent ea2d0bf1d4
commit 251fbe48ca
4 changed files with 123 additions and 3 deletions

View file

@ -9,6 +9,8 @@ namespace Alltube;
use Alltube\Exception\ConfigException;
use Alltube\Library\Downloader;
use Jawira\CaseConverter\CaseConverterException;
use Jean85\PrettyVersions;
use PackageVersions\Versions;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\Yaml\Yaml;
use Jawira\CaseConverter\Convert;
@ -332,4 +334,14 @@ class Config
$this->avconvVerbosity
);
}
/**
* @return string
*/
public function getAppVersion()
{
$version = PrettyVersions::getVersion(Versions::ROOT_PACKAGE_NAME);
return $version->getPrettyVersion();
}
}