Commit 560137ca authored by Joas Schilling's avatar Joas Schilling
Browse files

Always include the installed app version in "occ app:list"

parent e271fa3e
......@@ -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] . ')' : ''));
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment