Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / tests / resources / modules / d8 / woot / src / Commands / WootCommands.php
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
deleted file mode 100644 (file)
index 9f8596e..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-namespace Drupal\woot\Commands;
-
-use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
-
-/**
- * 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!';
-    }
-
-    /**
-     * This is the my-cat command
-     *
-     * 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.
-     * @aliases c
-     * @usage bet alpha --flip
-     *   Concatinate "alpha" and "bet".
-     */
-    public function myCat($one, $two = '', $options = ['flip' => false])
-    {
-        if ($options['flip']) {
-            return "{$two}{$one}";
-        }
-        return "{$one}{$two}";
-    }
-
-    /**
-     * 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' => ''])
-    {
-        $outputData = [
-            'en' => [ 'first' => 'One',  'second' => 'Two',  'third' => 'Three' ],
-            'de' => [ 'first' => 'Eins', 'second' => 'Zwei', 'third' => 'Drei'  ],
-            'jp' => [ 'first' => 'Ichi', 'second' => 'Ni',   'third' => 'San'   ],
-            'es' => [ 'first' => 'Uno',  'second' => 'Dos',  'third' => 'Tres'  ],
-        ];
-        return new RowsOfFields($outputData);
-    }
-
-    /**
-     * This command info is altered.
-     *
-     * @command woot:altered
-     * @aliases woot-initial-alias
-     */
-    public function wootAltered()
-    {
-    }
-}