Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make the output a little nicer-looking and better organized

  • Loading branch information...
commit d7d80a14d3d9f8502767bea6faae5092ac4f8e2c 1 parent 8683744
@pmjones pmjones authored
Showing with 14 additions and 4 deletions.
  1. +14 −4 status.php
View
18 status.php
@@ -11,7 +11,9 @@
/**
* Show status of the system as a whole.
*/
-`git status`;
+echo '------------------------------' . PHP_EOL . PHP_EOL;
+echo 'system' . PHP_EOL . PHP_EOL;
+passthru('git status');
/**
* Show status of the library packages.
@@ -30,8 +32,15 @@
$json = file_get_contents($url, FALSE, $context);
$data = json_decode($json);
-// for each of the repositories ...
+// sort the repos
+$repos = array();
foreach ($data->repositories as $repo) {
+ $repos[$repo->name] = $repo;
+}
+ksort($repos);
+
+// for each of the repositories ...
+foreach ($repos as $repo) {
// only use 'Aura.Package' repositories as packages
if (! preg_match('/Aura\.[A-Z0-9_]+/', $repo->name)) {
@@ -41,11 +50,12 @@
// does the package exist locally ?
$sub = $dir . DIRECTORY_SEPARATOR . $repo->name;
if (is_dir($sub)) {
- echo $sub . PHP_EOL;
+ echo PHP_EOL . '------------------------------' . PHP_EOL . PHP_EOL;
+ echo $repo->name . PHP_EOL . PHP_EOL;
passthru("cd $sub; git status");
- echo PHP_EOL . '# # #' . PHP_EOL . PHP_EOL;
}
}
// done!
+echo PHP_EOL . '------------------------------' . PHP_EOL . PHP_EOL;
echo 'Done!' . PHP_EOL;
Please sign in to comment.
Something went wrong with that request. Please try again.