Display all metadata in lint

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař
2017-05-16 15:56:48 +02:00
parent 56d6c5e502
commit 5cd0a1c510
+2
View File
@@ -37,6 +37,8 @@ do_lint() {
fi
VERSION=$JVERSION
echo " * Supported phpMyAdmin versions: `php -r "echo implode(', ', json_decode(file_get_contents('theme.json'), true)['supports']);"`"
echo " * Metadata:"
php -r "\$data = json_decode(file_get_contents('theme.json'), true); foreach (\$data as \$item => \$value) { echo ' - ' . \$item . ': '; if (is_array(\$value)) { echo implode(', ', \$value); } else { echo \$value; }; echo \"\\n\"; }"
cd ..
}