diff options
Diffstat (limited to 'core/Command/App/Disable.php')
-rw-r--r-- | core/Command/App/Disable.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Command/App/Disable.php b/core/Command/App/Disable.php index 94dd1f63541..76b0201681c 100644 --- a/core/Command/App/Disable.php +++ b/core/Command/App/Disable.php @@ -4,7 +4,7 @@ * * @author Daniel Kesselberg <mail@danielkesselberg.de> * @author Joas Schilling <coding@schilljs.com> - * @author Morris Jobke <hey@morrisjobke.de> + * @author John Molakvoæ <skjnldsv@protonmail.com> * @author Robin Appelman <robin@icewind.nl> * * @license AGPL-3.0 @@ -22,7 +22,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - namespace OC\Core\Command\App; use OCP\App\IAppManager; @@ -60,7 +59,7 @@ class Disable extends Command implements CompletionAwareInterface { ); } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $appIds = $input->getArgument('app-id'); foreach ($appIds as $appId) { @@ -78,7 +77,8 @@ class Disable extends Command implements CompletionAwareInterface { try { $this->appManager->disableApp($appId); - $output->writeln($appId . ' disabled'); + $appVersion = \OC_App::getAppVersion($appId); + $output->writeln($appId . ' ' . $appVersion . ' disabled'); } catch (\Exception $e) { $output->writeln($e->getMessage()); $this->exitCode = 2; |