Add generator meta with the current version
This commit is contained in:
parent
ea2d0bf1d4
commit
251fbe48ca
4 changed files with 123 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue