File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ if (PHP_SAPI !== 'cli') {
21
21
}
22
22
23
23
try {
24
- $ application = new Application ();
24
+ $ composerContents = json_decode (file_get_contents (__DIR__ . '/../composer.json ' ), true );
25
+ $ version = $ composerContents ['version ' ] ?? '' ;
26
+ $ name = $ composerContents ['description ' ] ?? 'Magento Semantic Version Checker ' ;
27
+ $ application = new Symfony \Component \Console \Application ();
28
+ $ application ->setName ($ name );
29
+ $ application ->setVersion ($ version );
25
30
$ application ->add (new CompareSourceCommand ());
26
31
$ application ->run ();
27
32
} catch (\Exception $ e ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " magento/magento-semver" ,
3
- "description" : " Magento semantic version checker " ,
3
+ "description" : " Magento Semantic Version Checker " ,
4
4
"version" : " 7.0.0" ,
5
5
"license" : [
6
6
" OSL-3.0" ,
You can’t perform that action at this time.
0 commit comments