Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Commands / generate / Generators / Drush / ported-methods.twig
diff --git a/vendor/drush/drush/src/Commands/generate/Generators/Drush/ported-methods.twig b/vendor/drush/drush/src/Commands/generate/Generators/Drush/ported-methods.twig
new file mode 100644 (file)
index 0000000..d1caa80
--- /dev/null
@@ -0,0 +1,36 @@
+{% for key, command in commands %}
+  /**
+   * {{ command.description|raw }}
+   *
+{% if command.arguments %}
+{% for argName, argDescription in command.arguments %}
+   * @param {{ argName }}
+   *   {{ argDescription|raw }}
+{% endfor %}
+{% endif %}
+{% if command.optionsConcat|raw %}
+    * @param array $options An associative array of options whose values come from cli, aliases, config, etc.
+{% endif %}
+{% if command.options %}
+{% for optionName, optionDescription in command.options %}
+   * @option {{ optionName }}
+   *   {{ optionDescription|raw }}
+{% endfor %}
+{% endif %}
+{% for usageName, usageDescription in command.examples %}
+   * @usage {{ usageName|raw }}
+   *   {{ usageDescription|raw }}
+{% endfor %}
+{% if command.depsConcat|raw %}
+   * @validate-module-enabled {{ command.depsConcat|raw }}
+{% endif %}
+   *
+   * @command {{ command.name }}
+   * @aliases {{ command.aliases|join(',')  }}
+   */
+  public function {{ command.method }}({{ command.argumentsConcat|raw }}{{ command.optionsConcat|raw }}) {
+    // See bottom of https://weitzman.github.io/blog/port-to-drush9 for details on what to change when porting a
+    // legacy command.
+  }
+
+{% endfor %}