Skip to content
Snippets Groups Projects
Commit b3bb65ea authored by Thomas Müller's avatar Thomas Müller
Browse files

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"
parents abb726c9 560137ca
Branches
No related tags found
No related merge requests found
......@@ -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] . ')' : ''));
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment