X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FCommands%2Fgenerate%2FGenerators%2FDrush%2Fported-methods.twig;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FCommands%2Fgenerate%2FGenerators%2FDrush%2Fported-methods.twig;h=d1caa803ef74564458697d25d3fa5df7fe7e78b9;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website 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 index 000000000..d1caa803e --- /dev/null +++ b/vendor/drush/drush/src/Commands/generate/Generators/Drush/ported-methods.twig @@ -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 %}