Version 1
[yaffs-website] / vendor / drush / drush / commands / core / outputformat / html.tpl.php
diff --git a/vendor/drush/drush/commands/core/outputformat/html.tpl.php b/vendor/drush/drush/commands/core/outputformat/html.tpl.php
new file mode 100644 (file)
index 0000000..44a4efc
--- /dev/null
@@ -0,0 +1,29 @@
+<html>
+<head><title>Drush help</title><style>dt {font-size: 110%; font-weight: bold}</style></head>
+<body>
+  <h3>Global Options (see `drush topic core-global-options` for the full list)</h3>
+  <table><?php
+    foreach ($global_options_rows as $key => $row) {
+      print '<tr>';
+      foreach ($row as $value) {
+        print  "<td>" . htmlspecialchars($value) . "</td>\n";
+      }
+      print "</tr>\n";
+    } ?>
+  </table>
+  <h3>Command list</h3>
+  <table><?php
+    foreach ($input as $key => $command) {
+      print "  <tr><td><a href=\"#$key\">$key</a></td><td>" . $command['description'] . "</td></tr>\n";
+    } ?>
+  </table>
+<h3>Command detail</h3>
+<dl><?php
+      foreach ($input as $key => $command) {
+        print "\n<a name=\"$key\"></a><dt>$key</dt><dd><pre>\n";
+        drush_core_helpsingle($key);
+        print "</pre></dd>\n";
+      }
+    ?>
+</body>
+</html>