X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fsrc%2FCommands%2FWootCommands.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fsrc%2FCommands%2FWootCommands.php;h=9f8596eb22d149fe5e55f8c5e91cfdbdbf8291b3;hp=ba230750680a4dd7a87c71103ad25092c7677cb9;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/resources/modules/d8/woot/src/Commands/WootCommands.php b/vendor/drush/drush/tests/resources/modules/d8/woot/src/Commands/WootCommands.php index ba2307506..9f8596eb2 100644 --- a/vendor/drush/drush/tests/resources/modules/d8/woot/src/Commands/WootCommands.php +++ b/vendor/drush/drush/tests/resources/modules/d8/woot/src/Commands/WootCommands.php @@ -4,27 +4,28 @@ namespace Drupal\woot\Commands; use Consolidation\OutputFormatters\StructuredData\RowsOfFields; /** - * For commands that are parts of modules, Drush expects to find commandfiles in - * __MODULE__/src/Command, and the namespace is Drupal/__MODULE__/Command. + * Commandfiles must be listed in a module's drush.services.yml file. */ class WootCommands { /** * Woot mightily. * + * @command woot * @aliases wt */ public function woot() { - return 'Woot!'; + return 'Woot!'; } /** * This is the my-cat command * - * This command will concatinate two parameters. If the --flip flag + * This command will concatenate two parameters. If the --flip flag * is provided, then the result is the concatination of two and one. * + * @command my-cat * @param string $one The first parameter. * @param string $two The other parameter. * @option boolean $flip Whether or not the second parameter should come first in the result. @@ -43,14 +44,20 @@ class WootCommands /** * Demonstrate formatters. Default format is 'table'. * + * @command try:formatters * @field-labels * first: I * second: II * third: III * @usage try:formatters --format=yaml + * Emit yaml. * @usage try:formatters --format=csv + * Emit CSV. * @usage try:formatters --fields=first,third + * Emit some fields. * @usage try:formatters --fields=III,II + * Emit other fields. + * @aliases try-formatters * @return \Consolidation\OutputFormatters\StructuredData\RowsOfFields */ public function tryFormatters($options = ['format' => 'table', 'fields' => '']) @@ -63,4 +70,14 @@ class WootCommands ]; return new RowsOfFields($outputData); } + + /** + * This command info is altered. + * + * @command woot:altered + * @aliases woot-initial-alias + */ + public function wootAltered() + { + } }