Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Commands / OptionsCommands.php
diff --git a/vendor/drush/drush/src/Commands/OptionsCommands.php b/vendor/drush/drush/src/Commands/OptionsCommands.php
new file mode 100644 (file)
index 0000000..707cb89
--- /dev/null
@@ -0,0 +1,68 @@
+<?php
+namespace Drush\Commands;
+
+/*
+ * Common options providers. Use them by adding an annotation to your method.
+ */
+use Symfony\Component\Console\Input\InputOption;
+
+class OptionsCommands
+{
+
+    const REQ=InputOption::VALUE_REQUIRED;
+
+    /**
+     * @hook option @optionset_proc_build
+     * @option ssh-options A string of extra options that will be passed to the ssh command (e.g. "-p 100")
+     * @option tty Create a tty (e.g. to run an interactive program).
+     */
+    public function optionsetProcBuild($options = ['ssh-options' => self::REQ, 'tty' => false])
+    {
+    }
+
+    /**
+     * @hook option @optionset_get_editor
+     * @option editor A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}.
+     * @option bg Run editor in the background. Does not work with editors such as `vi` that run in the terminal.
+     */
+    public function optionsetGetEditor($options = ['editor' => '', 'bg' => false])
+    {
+    }
+
+    /**
+     * @hook option @optionset_ssh
+     * @option ssh-options A string appended to ssh command during rsync, sql-sync, etc.
+     */
+    public function optionsetSsh($options = ['ssh-options' => self::REQ])
+    {
+    }
+
+    /**
+     * @hook option @optionset_sql
+     * @option database The DB connection key if using multiple connections in settings.php.
+     * @option db-url A Drupal 6 style database URL.
+     * @option target The name of a target within the specified database connection. Defaults to default
+     */
+    public function optionsetSql($options = ['database' => 'default', 'target' => 'default', 'db-url' => self::REQ])
+    {
+    }
+
+    /**
+     * @hook option @optionset_table_selection
+     * @option skip-tables-key A key in the $skip_tables array. @see example.drush.yml
+     * @option structure-tables-key A key in the $structure_tables array. @see example.drush.yml
+     * @option tables-key A key in the $tables array.
+     * @option skip-tables-list A comma-separated list of tables to exclude completely.
+     * @option structure-tables-list A comma-separated list of tables to include for structure, but not data.
+     * @option tables-list A comma-separated list of tables to transfer.
+     */
+    public function optionsetTableSelection($options = [
+        'skip-tables-key' => self::REQ,
+        'structure-tables-key' => self::REQ,
+        'tables-key' => self::REQ,
+        'skip-tables-list' => self::REQ,
+        'structure-tables-list' => self::REQ,
+        'tables-list' => self::REQ])
+    {
+    }
+}