diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-11 12:23:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-11 12:23:22 +0100 |
commit | b3bb65eae5337a966956d27af8969d029c242341 (patch) | |
tree | 4dc56d5138cf058b846a1cc46fc3ea7814b86fc0 /core/command | |
parent | abb726c994058ad0e962be87d82d788a1edae901 (diff) | |
parent | 560137ca23c62c150a5037782e8076528c7726d4 (diff) | |
download | nextcloud-server-b3bb65eae5337a966956d27af8969d029c242341.tar.gz nextcloud-server-b3bb65eae5337a966956d27af8969d029c242341.zip |
Merge pull request #14662 from owncloud/issue/14661-show-versions-in-occ-applist
Add an option to include the installed app version in "occ app:list"
Diffstat (limited to 'core/command')
-rw-r--r-- | core/command/app/listapps.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/command/app/listapps.php b/core/command/app/listapps.php index dc471c5453a..e957c15547a 100644 --- a/core/command/app/listapps.php +++ b/core/command/app/listapps.php @@ -23,6 +23,7 @@ class ListApps extends Command { $apps = \OC_App::getAllApps(); $enabledApps = array(); $disabledApps = array(); + $versions = \OC_App::getAppVersions(); //sort enabled apps above disabled apps foreach ($apps as $app) { @@ -37,11 +38,11 @@ class ListApps extends Command { sort($disabledApps); $output->writeln('Enabled:'); foreach ($enabledApps as $app) { - $output->writeln(' - ' . $app); + $output->writeln(' - ' . $app . (isset($versions[$app]) ? ' (' . $versions[$app] . ')' : '')); } $output->writeln('Disabled:'); foreach ($disabledApps as $app) { - $output->writeln(' - ' . $app); + $output->writeln(' - ' . $app . (isset($versions[$app]) ? ' (' . $versions[$app] . ')' : '')); } } } |