88namespace Magento \CloudPatches \Command \Process ;
99
1010use Magento \CloudPatches \Command \Process \Action \ReviewAppliedAction ;
11+ use Magento \CloudPatches \Composer \MagentoVersion ;
1112use Magento \CloudPatches \Console \QuestionFactory ;
1213use Magento \CloudPatches \Patch \Data \AggregatedPatch ;
1314use Magento \CloudPatches \Patch \Data \AggregatedPatchInterface ;
@@ -45,6 +46,11 @@ class ShowStatus implements ProcessInterface
4546 */
4647 private $ localPool ;
4748
49+ /**
50+ * @var MagentoVersion
51+ */
52+ private $ magentoVersion ;
53+
4854 /**
4955 * @var StatusPool
5056 */
@@ -88,7 +94,8 @@ public function __construct(
8894 ReviewAppliedAction $ reviewAppliedAction ,
8995 Renderer $ renderer ,
9096 QuestionHelper $ questionHelper ,
91- QuestionFactory $ questionFactory
97+ QuestionFactory $ questionFactory ,
98+ MagentoVersion $ magentoVersion
9299 ) {
93100 $ this ->aggregator = $ aggregator ;
94101 $ this ->optionalPool = $ optionalPool ;
@@ -98,6 +105,7 @@ public function __construct(
98105 $ this ->renderer = $ renderer ;
99106 $ this ->questionHelper = $ questionHelper ;
100107 $ this ->questionFactory = $ questionFactory ;
108+ $ this ->magentoVersion = $ magentoVersion ;
101109 }
102110
103111 /**
@@ -134,6 +142,10 @@ public function run(InputInterface $input, OutputInterface $output)
134142 } else {
135143 $ this ->renderer ->printTable ($ output , array_values ($ patches ));
136144 }
145+
146+ if (!$ isJsonFormat ) {
147+ $ output ->writeln ('<info> ' . $ this ->magentoVersion ->get () . '</info> ' );
148+ }
137149 }
138150
139151 /**
0 commit comments